-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
30 lines (24 loc) · 1.05 KB
/
Dockerfile
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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
FROM python:3.9.4-slim
LABEL maintainer="Mitchell Hentges <[email protected]>"
LABEL community="https://chat.mozilla.org/#/room/#conduit:mozilla.org"
LABEL bug-component="https://bugzilla.mozilla.org/enter_bug.cgi?product=Conduit&component=Phabricator"
RUN apt-get update && apt-get install -y \
postgresql-client \
libpq-dev \
gcc
RUN addgroup --gid 10001 app && adduser -q --gecos "" --disabled-password --uid 10001 --gid 10001 --home /app --shell /bin/sh app
WORKDIR /app
USER app
ENV PATH "/app/.local/bin:${PATH}"
COPY requirements.txt .
RUN pip install --user -r requirements.txt
# Using a wildcard so that the COPY still succeeds, even if version.json doesn't exist.
COPY version.json* ./
COPY setup.py ./
COPY MANIFEST.in ./
COPY phabricatoremails/ phabricatoremails/
RUN pip install --user .
ENTRYPOINT ["/app/.local/bin/phabricator-emails"]