closer to running

This commit is contained in:
Luke Berndt
2021-01-14 22:22:46 -05:00
parent 86eb854848
commit e20529b7f5
19 changed files with 51 additions and 141 deletions

17
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
# build environment
FROM node:13.12.0-alpine as build
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY package.json ./
RUN npm install
RUN npm install react-scripts@3.4.1 -g --silent
COPY . ./
RUN npm run build
# production environment
FROM node:13.12.0-alpine
RUN mkdir -p /app/public
WORKDIR /app
RUN npm install -g serve
COPY --from=build /app/build /app/public
CMD serve -s public -l 3000