awesome-compose/samples/react-express-mysql/frontend/Dockerfile.production
Anca Iordache 43f21f2d8d add react-express-mysql application sample
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
2020-03-05 18:40:44 +01:00

12 lines
239 B
Text
Executable file

FROM node:10 as build
RUN mkdir /project
WORKDIR /project
COPY . .
RUN yarn install
RUN yarn run package
FROM nginx:1.13-alpine
COPY config/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /project/dist /usr/share/nginx/html