Skip to content
Snippets Groups Projects
Commit 5c566648 authored by derrabauke's avatar derrabauke
Browse files

add docker file for the server

parent cfa6c0ca
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,6 @@ build_client:
- docker:19.03.12-dind
stage: build
script:
- docker build -f app/client/Dockerfile -t client:v0.0.1 .
- docker build -f app/client/Dockerfile -t ${}client:v0.0.1 .
only:
- master
......@@ -16,7 +16,7 @@ RUN npm run build
# Put this stuff into a nginx server
FROM nginx:latest
# copy from previous build to this image
COPY --from=build /usr/src/app/build /usr/share/nginx/html
EXPOSE 80
......
......@@ -5,7 +5,7 @@
replicaCount: 1
image:
repository: nginx
repository: nginx # !Change this to the actual image
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
......
FROM node:12.16.3
WORKDIR "/usr/app"
COPY package*.json ./
COPY . .
RUN npm install --production
ENV PORT 3002
ENV NODE_ENV production
EXPOSE 3002
CMD ["npm", "start"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment