Skip to content
Snippets Groups Projects
Commit 411ff473 authored by Andrew Kapuscinski's avatar Andrew Kapuscinski
Browse files

Sws 21 add frontend to local env

parent 26b37862
No related branches found
No related tags found
1 merge request!68Sws 21 add frontend to local env
Pipeline #469 passed
......@@ -148,27 +148,18 @@ clean build workflow:
variables:
SERVICE_NAME: "workflow"
extends: .cleanup
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_COMMIT_MESSAGE =~ /\A(?i)-debug/'
when: never
clean build capability:
stage: clean-images
variables:
SERVICE_NAME: "capability"
extends: .cleanup
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_COMMIT_MESSAGE =~ /\A(?i)-debug/'
when: never
clean build notification:
stage: clean-images
variables:
SERVICE_NAME: "notification"
extends: .cleanup
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_COMMIT_MESSAGE =~ /\A(?i)-debug/'
when: never
# Deploy Stages
......
FROM node:14.15.1-alpine3.12
# set container working directory to /code
WORKDIR /code/
ENTRYPOINT ["./bin/boot-local.sh"]
\ No newline at end of file
# copy web app from host to container
COPY ./apps/web ./
# install dependencies
RUN apk add --no-cache \
git \
python2 \
g++ \
make
# install node_modules
RUN npm install
# start Angular development server
CMD [ "./node_modules/.bin/ng", "serve", "--host", "0.0.0.0" ]
\ No newline at end of file
......@@ -69,12 +69,13 @@ services:
- ./apps:/code/src/apps
- ./testing:/code/src/testing
# frontend:
# build:
# context: ./apps/web/
# dockerfile: Dockerfile.local
# ports:
# - "4200:4200"
# volumes:
# - ./apps/web:/code
# - /code/node_modules
frontend:
build:
context: .
dockerfile: ./apps/web/Dockerfile.local
init: true
ports:
- "4200:4200"
volumes:
- ./apps/web:/code
- /code/node_modules
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