Skip to content
Snippets Groups Projects
Commit 73f201d8 authored by derrabauke's avatar derrabauke
Browse files

trying to fix docker build

parent efa0d02c
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ build_client:
- docker:19.03.12-dind
stage: build
script:
- docker build --network host -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 push $CLIENT_RELEASE_IMAGE_TAG
only:
......
# Build a release
FROM node:12.16.3
FROM node:12.16.3 as build
RUN mkdir /usr/src/app
RUN ls
WORKDIR /usr/src/app
RUN ls
COPY package*.json ./
ENV PATH /usr/src/app/node_modules/.bin:$PATH
......@@ -15,7 +17,7 @@ RUN npm run build
# Put this stuff into a nginx server
FROM nginx:latest
COPY --from=0 /usr/src/app/build /usr/share/nginx/html
COPY --from=build /usr/src/app/build /usr/share/nginx/html
EXPOSE 80
......
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