mirror of
https://github.com/FranP-code/Pomodoro-Timer-with-Clockify-integration.git
synced 2025-10-12 23:52:30 +00:00
added Dockerfile
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM alpine:latest as build
|
||||
|
||||
RUN apk add --update nodejs npm
|
||||
RUN npm install --global yarn
|
||||
|
||||
COPY ['.', '/usr/src']
|
||||
WORKDIR /usr/src
|
||||
|
||||
RUN yarn
|
||||
RUN yarn build REACT_APP_ENV_MODE=${REACT_APP_ENV_MODE}
|
||||
|
||||
FROM nginx:1.23.1-alpine
|
||||
EXPOSE 80
|
||||
COPY ./docker/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /usr/src/build /usr/share/nginx/html
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user