We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d684f34 commit 29d7e8dCopy full SHA for 29d7e8d
.dockerignore
@@ -0,0 +1,8 @@
1
+*.pyc
2
+*.pyd
3
+*.pyo
4
+.git
5
+.venv
6
+**/__pycache__
7
+config.ini
8
+clones
Dockerfile
@@ -0,0 +1,19 @@
+FROM python:3.12-slim
+
+WORKDIR /app
+RUN groupadd --gid 10001 app \
+ && useradd -m -g app --uid 10001 -s /usr/sbin/nologin app
+RUN apt-get update && \
9
+ apt-get install --yes git && \
10
+ apt-get -q --yes autoremove && \
11
+ apt-get clean && \
12
+ rm -rf /root/.cache
13
14
+# Copy local code to the container image.
15
+COPY . /app
16
17
+RUN pip install -U pip pytest
18
+USER app
19
+RUN pip install -e .
docker-compose.yaml
@@ -0,0 +1,6 @@
+services:
+ sync:
+ build: .
+ environment:
+ GITHUB_ACTIONS: "true"
+ command: ['pytest', 'tests']
0 commit comments