Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Statistical-Genetics
jass
Commits
098f6175
Commit
098f6175
authored
Apr 07, 2022
by
Bryan BRANCOTTE
Browse files
re-use container created to build the static client to run `yarn dev`
parent
fcf2c306
Changes
2
Hide whitespace changes
Inline
Side-by-side
client/Dockerfile
View file @
098f6175
#################################################
# container
to build the client
# container
shipping client source and dependencies
#################################################
FROM
node:16-buster
as
client-
static-build
FROM
node:16-buster
as
client-
base-container
ARG
API_URL
...
...
@@ -17,6 +17,14 @@ RUN yarn install
COPY
. /client
#################################################
# container that will generate the client
#################################################
FROM
client-base-container
as
client-static-build
ARG
API_URL
RUN
yarn run generate
...
...
docker-compose.yaml
View file @
098f6175
...
...
@@ -41,18 +41,16 @@ services:
-
rabbitmq
-
celery
front
:
image
:
node:15.12.0-buster
command
:
>
bash -c "cd client &&
yarn install &&
yarn dev"
build
:
context
:
client
target
:
client-base-container
command
:
[
'
yarn'
,
'
dev'
]
environment
:
HOST
:
0.0.0.0
NODE_ENV
:
development
# API_URL: http://172.19.0.1:8000/api
volumes
:
-
./client:/client
-
/client/node_modules
ports
:
-
'
3000:3000'
front-static
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment