
- Configs and automation for deploying backend to GKE - First steps to adding an optional token check for requests to backend - First steps frontend sending optional token to backend when configured
18 lines
329 B
Docker
18 lines
329 B
Docker
FROM node:alpine
|
|
|
|
ARG NEXT_PUBLIC_WS_URL
|
|
ARG NEXT_PUBLIC_API_URL
|
|
ARG SUPER_SECRET_KEY
|
|
|
|
ENV NEXT_PUBLIC_WS_URL=${NEXT_PUBLIC_WS_URL}
|
|
ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
|
|
ENV SUPER_SECRET_KEY=${SUPER_SECRET_KEY}
|
|
|
|
WORKDIR /home/perplexica
|
|
|
|
COPY ui /home/perplexica/
|
|
|
|
RUN yarn install
|
|
RUN yarn build
|
|
|
|
CMD ["yarn", "start"]
|