bigbuffet-rw/Dockerfile

15 lines
315 B
Docker
Raw Normal View History

2022-09-01 14:57:39 -07:00
FROM node:18 as build
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-01 17:49:21 -07:00
COPY installation/docker.conf.template /etc/nginx/templates/default.conf.template
2022-09-01 14:57:39 -07:00
COPY --from=build /app/static /usr/share/nginx/html