]> git.somenet.org - pub/jan/aic18.git/blob - service-website/Dockerfile
Revert "added package-lock"
[pub/jan/aic18.git] / service-website / Dockerfile
1 FROM node:10-alpine as react-build
2 LABEL maintainer="Michael Winsauer <e1429715@student.tuwien.ac.at>"
3
4 WORKDIR /app
5 COPY . ./
6
7 RUN ["yarn", "install"]
8 RUN ["yarn", "build"]
9
10
11 FROM nginx:alpine
12 LABEL maintainer="Michael Winsauer <e1429715@student.tuwien.ac.at>"
13
14 EXPOSE 8080
15
16 COPY --from=react-build /app/build /usr/share/nginx/html
17 COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
18
19 CMD ["nginx", "-g", "daemon off;"]