Commit ef85d040 authored by Dobli's avatar Dobli
Browse files

Added docker file and use yarn

parent d2dc51b5
.git
node_modules
build
# stage: 1
FROM node:11 as react-build
WORKDIR /app
COPY . ./
RUN yarn
ENV SASS_PATH=/app/node_modules
RUN yarn build
# stage: 2 - production container image
FROM nginx:alpine
COPY --from=react-build /app/build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment