Commit 6f36b3ce authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Caching yarn/front-end files

parent 77c0ffac
Pipeline #10730 passed with stage
in 1 minute and 9 seconds
.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
......
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment