This repository was archived by the owner on Apr 14, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 runs-on : ubuntu-latest
1111 strategy :
1212 matrix :
13- python-version : [3.9]
13+ python-version :
14+ - " 3.10"
1415
1516 steps :
1617 - uses : actions/checkout@v2
Original file line number Diff line number Diff line change 1-
21#
32# Launch a build container so we do not need to care about junk in the production image
43#
5- FROM python:3.8 AS build
4+ FROM python:3.10 AS build
65
76# This is needed to start the Django app
87ARG SECRET_KEY=none
@@ -35,21 +34,21 @@ RUN rm db.sqlite3
3534#
3635# The production container
3736#
38- FROM python:3.8
37+ FROM python:3.10
3938EXPOSE 8080
4039
41- COPY --from=build /app /app
40+ RUN adduser --no-create-home --gecos FALSE --disabled-password finger
4241
4342RUN apt-get update \
4443 && apt-get -y install nginx ruby-sass \
4544 && rm -rf /var/lib/apt/lists/*
4645
46+ COPY --from=build --chown=finger /app /app
47+
4748RUN pip install -r /app/requirements.txt
4849WORKDIR /app
4950
50- RUN adduser --no-create-home --gecos FALSE --disabled-password finger \
51- && sed -i "s/XXX_BUILD_DATE_XXX/`date +'%F %T'`/" /app/fingerweb/settings.py \
52- && chown -R finger:finger /app
51+ RUN sed -i "s/XXX_BUILD_DATE_XXX/`date +'%F %T'`/" /app/fingerweb/settings.py
5352
5453ADD conf/nginx.conf /etc/nginx/nginx.conf
5554ADD entrypoint.sh /app/entrypoint.sh
You can’t perform that action at this time.
0 commit comments