-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (20 loc) · 1 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
FROM python:3.13-alpine
LABEL maintainer="Minituff (James Tufarelli)"
# Copy all these files into /app
COPY requirements.txt headerrc-default.yml app/*.py /app/
# Install dependencies
RUN \
echo "**** Install ****" && \
python3 -m pip install --no-cache-dir --upgrade -r /app/requirements.txt
# Required for python imports to work
ENV PYTHONPATH=.
ENV PYTHONUNBUFFERED=1
# When the action runs, it will automatically map the default working directory (GITHUB_WORKSPACE) on the runner with the /github/workspace directory on the container.
# https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action#accessing-files-created-by-a-container-action
VOLUME [ "/github/workspace" ]
# Code file to execute when the docker container starts up
# Args will be passed using CMD
ENTRYPOINT ["python3", "/app/main.py"]
# Do not use: USER or WORKDIR
# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions
# --workdir /github/workspace will be used by github