FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
patchwork/tools/docker/Dockerfile at main · getpatchwork/patchwork · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
getpatchwork
/
patchwork
Public
Notifications
You must be signed in to change notification settings
Fork
90
Star
315
Code
Issues
97
Pull requests
22
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
patchwork
/
tools
/
docker
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
42 lines (34 loc) · 1.32 KB
Breadcrumbs
patchwork
/
tools
/
docker
/
Dockerfile
Copy path
File metadata and controls
42 lines (34 loc) · 1.32 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM
ghcr.io/getpatchwork/pyenv:latest
#
Match the host user's UID so the container can write to bind-mounted volumes.
#
Ubuntu 24.04 ships with an 'ubuntu' user (UID 1000); we just remap it.
ARG
UID=1000
ARG
GID=1000
RUN
groupmod -g
"${GID}"
ubuntu && usermod -u
"${UID}"
ubuntu && chown -R ubuntu:ubuntu /home/ubuntu
ARG
TZ=
"Australia/Canberra"
ENV
DEBIAN_FRONTEND=noninteractive
ENV
PYTHONUNBUFFERED=1
ENV
PROJECT_HOME=/home/ubuntu/patchwork
ENV
DJANGO_SETTINGS_MODULE=patchwork.settings.dev
RUN
rm -f /etc/localtime; ln -s /usr/share/zoneinfo/$TZ /etc/localtime
RUN
eval
"$(pyenv init -)"
RUN
apt-get update && apt-get install -y --no-install-recommends \
build-essential \
default-libmysqlclient-dev \
default-mysql-client \
libpq-dev \
libsqlite3-dev \
postgresql-client \
sqlite3 \
tzdata \
pkg-config \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN
pip install wheel tox
#
we deliberately leave the requirements files in /opt so we can ping the user
#
in entrypoint.sh if they change
COPY
requirements-dev.txt requirements-test.txt /opt/
RUN
pip install -r /opt/requirements-dev.txt
COPY
tools/docker/entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT
[
"/usr/local/bin/entrypoint.sh"
]
CMD
[
"python3"
,
"manage.py"
,
"runserver"
,
"0.0.0.0:8000"
]
USER
ubuntu
WORKDIR
/home/ubuntu/patchwork
Back
|
FazBrowse Home
|
New Git URL