-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (18 loc) · 756 Bytes
/
Dockerfile
File metadata and controls
29 lines (18 loc) · 756 Bytes
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
# This app requires a GitHub API token to access the GitHub Actions API.
# To set the token, run the container with the -e flag and specify the token
# as the value of the GITHUB_TOKEN environment variable.
# Example: docker run -p 8000:8000 -e GITHUB_TOKEN="<token>" github-cctray:latest
FROM python:3.9-slim-buster AS build
WORKDIR /app
COPY src/requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
FROM python:3.9-slim-buster AS app
RUN groupadd -r app && useradd --no-log-init -r -g app app
COPY --from=build /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages
COPY src /app/src
COPY CHANGELOG.md /app
RUN chown -R app:app /app
WORKDIR /app/src
USER app
EXPOSE 8000
ENTRYPOINT ["python", "app.py"]