-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) · 826 Bytes
/
Dockerfile
File metadata and controls
22 lines (16 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use a lightweight base image with Python and pip installed
FROM python:3.13-alpine # NOSONAR - root required for GitHub Actions workspace compatibility
# Using "lastversion" user as provided by some linter was a mistake and causes issues with GitHub actions being ran as "runner"
# and lastversion running as a different user and being unable to work with workspace files for extracting to its directory
# USER root
# Set the working directory to /app
WORKDIR /app
# Copy the source code into the container
COPY src ./src/
COPY setup.py README.md ./
# Install the application and its dependencies
RUN pip install -e .
# Additionally install truststore package for SSL certificate verification via pip
RUN pip install truststore
# Set the entrypoint to the command that runs your application
ENTRYPOINT ["lastversion"]