Skip to content
Snippets Groups Projects
Commit 6ee125d8 authored by derrabauke's avatar derrabauke
Browse files

finally fix docker build

parent 9e6baede
No related branches found
No related tags found
No related merge requests found
...@@ -50,10 +50,9 @@ build_client: ...@@ -50,10 +50,9 @@ build_client:
image: docker:19.03.12 image: docker:19.03.12
tags: tags:
- docker-privileged - docker-privileged
services:
- docker:19.03.12-dind
stage: build stage: build
script: script:
- cd app/client
- docker build -f app/client/Dockerfile -t $CLIENT_IMAGE_TAG . - docker build -f app/client/Dockerfile -t $CLIENT_IMAGE_TAG .
- docker tag $CLIENT_IMAGE_TAG $CLIENT_RELEASE_IMAGE_TAG - docker tag $CLIENT_IMAGE_TAG $CLIENT_RELEASE_IMAGE_TAG
- docker push $CLIENT_RELEASE_IMAGE_TAG - docker push $CLIENT_RELEASE_IMAGE_TAG
......
...@@ -3,11 +3,15 @@ FROM node:12.16.3 as build ...@@ -3,11 +3,15 @@ FROM node:12.16.3 as build
RUN mkdir /usr/src/app RUN mkdir /usr/src/app
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY . ./
COPY package*.json ./
ENV PATH /usr/src/app/node_modules/.bin:$PATH ENV PATH /usr/src/app/node_modules/.bin:$PATH
RUN ls -a
RUN npm install --silent RUN npm install --silent
COPY . .
RUN npm run build RUN npm run build
# Put this stuff into a nginx server # Put this stuff into a nginx server
......
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