bigbuffet-rw/packages/pl-fe/Dockerfile

18 lines
383 B
Docker
Raw Normal View History

2023-10-19 17:07:16 -07:00
FROM node:21 as build
2022-09-01 14:57:39 -07:00
WORKDIR /app
COPY package.json .
COPY yarn.lock .
RUN yarn
COPY . .
ARG NODE_ENV=production
RUN yarn build
FROM nginx:stable-alpine
EXPOSE 5000
ENV PORT=5000
2022-09-04 13:02:12 -07:00
ENV FALLBACK_PORT=4444
ENV BACKEND_URL=http://localhost:4444
2022-09-04 12:46:29 -07:00
ENV CSP=
2022-09-01 17:49:21 -07:00
COPY installation/docker.conf.template /etc/nginx/templates/default.conf.template
COPY --from=build /app/dist /usr/share/nginx/html