Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
elixir
beacon
Commits
6f36b3ce
Commit
6f36b3ce
authored
Jun 14, 2019
by
Jacek Lebioda
Browse files
Caching yarn/front-end files
parent
77c0ffac
Pipeline
#10730
passed with stage
in 1 minute and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.dockerignore
View file @
6f36b3ce
.git/*
.idea/*
# These directories (templates&static) should be filled by gulp
code/backend/**/__pycache__/*
code/backend/templates/*
code/backend/static/*
# These directories should not be needed
...
...
Dockerfile
View file @
6f36b3ce
...
...
@@ -8,15 +8,14 @@ RUN mkdir -p /home/beacon/elixir-beacon && \
COPY
code/backend/requirements.txt /home/beacon/elixir-beacon/
WORKDIR
/home/beacon/elixir-beacon
RUN
pip3
install
--default-timeout
=
60
-i
https://pypi.lcsb.uni.lu/simple
-r
requirements.txt
# Prepare the project
COPY
. /home/beacon/elixir-beacon
# Build front-end files
COPY
code/frontend /home/beacon/elixir-beacon/code/
WORKDIR
/home/beacon/elixir-beacon/code/frontend
RUN
yarn
install
&&
node node_modules/gulp/bin/gulp.js
# Run the back-end
# Move the back-end files, and run it
COPY
. /home/beacon/elixir-beacon
WORKDIR
/home/beacon/elixir-beacon/code/backend
ENV
BEACON_SETTINGS_YAML /home/beacon/elixir-beacon/configuration/beacon_information.yaml
ENV
BEACON_DATASOURCES_YAML /home/beacon/elixir-beacon/configuration/connections.yaml
ENTRYPOINT
["gunicorn"]
CMD
["--bind", ":8123", "wsgi:app", "--access-logfile", "/log/access.log", "--error-logfile", "/log/error.log"]
ENTRYPOINT
["gunicorn", "--bind", ":8123", "wsgi:app", "--access-logfile", "/log/access.log", "--error-logfile", "/log/error.log"]
EXPOSE
8123
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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