mirror of
https://github.com/rowyio/rowy.git
synced 2026-02-24 04:01:17 +01:00
13 lines
290 B
Docker
13 lines
290 B
Docker
# Stage 1
|
|
FROM node:8 as react-build
|
|
WORKDIR /www
|
|
COPY . ./
|
|
RUN yarn
|
|
RUN yarn build
|
|
|
|
# Stage 2 - the production environment
|
|
FROM nginx:alpine
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=react-build /app/build /usr/share/nginx/html
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"] |