-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
66 additions
and
46 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
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,3 +1,26 @@ | ||
FROM python:3.11-slim-bullseye AS thunorweb_base | ||
MAINTAINER Alex Lubbock <[email protected]> | ||
ENV PYTHONUNBUFFERED 1 | ||
ENV THUNOR_HOME=/thunor | ||
|
||
RUN apt update && apt install -y libpq-dev gcc libmagic1 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir $THUNOR_HOME | ||
WORKDIR $THUNOR_HOME | ||
|
||
ADD requirements.txt $THUNOR_HOME | ||
ADD thunor $THUNOR_HOME/thunor | ||
RUN pip3 install --no-cache-dir -r requirements.txt | ||
RUN dpkg --purge gcc | ||
CMD ["uwsgi", "--master", "--socket", ":8000", "--module", "thunordjango.wsgi", "--uid", "www-data", "--gid", "www-data", "--enable-threads"] | ||
ADD manage.py $THUNOR_HOME | ||
ADD thunordjango $THUNOR_HOME/thunordjango | ||
RUN cd $THUNOR_HOME/thunor && python3 setup.py install | ||
ADD thunorweb $THUNOR_HOME/thunorweb | ||
ARG THUNORWEB_VERSION=unknown | ||
RUN printf "def get_versions():\n return {'version': '$THUNORWEB_VERSION'}\n" > $THUNOR_HOME/thunorweb/_version.py | ||
|
||
FROM thunorweb_base | ||
|
||
COPY _state/deploy-test/_state/thunor-static-build $THUNOR_HOME/_state/thunor-static |
This file was deleted.
Oops, something went wrong.
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