We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 132a89b commit 1c8008eCopy full SHA for 1c8008e
Dockerfile
@@ -9,13 +9,14 @@ RUN pip install pdm
9
10
# copy files
11
COPY pyproject.toml pdm.lock README.md /project/
12
-COPY data/ project/data
13
-COPY src/ /project/src
+COPY . /project/
14
15
16
WORKDIR /project
17
18
RUN pdm install
+RUN chmod +x docker-entrypoint.sh
19
+
20
21
EXPOSE 8080
22
CMD ["pdm", "run", "start"]
docker-compose.yaml
@@ -1,10 +1,9 @@
1
-version: '3.8'
2
-
3
services:
4
myapp:
5
- build:
6
- context: .
7
- target: builder
+ image: mrsunglasses/pastepy:latest
+ env_file:
+ - .env
8
ports:
- - "8080:8080"
- command: ["pdm", "run", "start"]
+ - "8082:8080"
+ entrypoint: ["./docker-entrypoint.sh"]
+ command: ["pdm", "run", "start"]
0 commit comments