This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from Purplship/purplship-server-2021.5-rc
[release candidate] Purplship Server Edition 2021.5
- Loading branch information
Showing
144 changed files
with
15,277 additions
and
6,971 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
FROM python:3.8 | ||
# The base image compilation | ||
FROM python:3.8-slim AS compile-image | ||
RUN python -m venv /opt/venv | ||
ENV PATH="/opt/venv/bin:$PATH" | ||
|
||
COPY requirements.txt /temp/ | ||
RUN pip install --upgrade pip && \ | ||
pip install -r /temp/requirements.txt | ||
|
||
|
||
# The runtime image | ||
FROM python:3.8-slim AS build-image | ||
COPY --from=compile-image /opt/venv /opt/venv | ||
|
||
LABEL [email protected] | ||
LABEL org.opencontainers.image.title="Purplship Server" | ||
|
@@ -13,22 +25,15 @@ ENV DEBUG_MODE False | |
ENV USE_HTTPS False | ||
ENV ALLOWED_HOSTS * | ||
ENV SECRET_KEY "w;l5kj65lk6j;lj56kl56jk5l656j5k6jl5" | ||
|
||
ENV WORK_DIR /app | ||
ENV LOG_DIR /log | ||
ENV STATIC_ROOT_DIR /static | ||
|
||
EXPOSE $PURPLSHIP_PORT | ||
|
||
RUN mkdir /app /log /static | ||
WORKDIR /app | ||
|
||
COPY requirements.txt /temp/ | ||
COPY gunicorn-cfg.py .docker/entrypoint.sh licenses/APACHE-LICENSE-2.0 /app/ | ||
|
||
RUN pip install --upgrade pip \ | ||
pip install -r /temp/requirements.txt | ||
RUN mkdir $WORK_DIR $LOG_DIR $STATIC_ROOT_DIR | ||
WORKDIR $WORK_DIR | ||
|
||
RUN chmod +x entrypoint.sh | ||
# Make sure we use the virtualenv: | ||
ENV PATH="/opt/venv/bin:$PATH" | ||
|
||
COPY gunicorn-cfg.py .docker/entrypoint.sh $WORK_DIR/ | ||
ENTRYPOINT ["/bin/bash", "./entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/client/purpleserver/client/static/client/purplship.dashboard.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
apps/client/purpleserver/client/static/client/purplship.dashboard.min.css.map
Large diffs are not rendered by default.
Oops, something went wrong.
25 changes: 17 additions & 8 deletions
25
apps/client/purpleserver/client/static/client/purplship.dashboard.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
apps/client/purpleserver/client/static/client/purplship.dashboard.min.js.map
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.