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 c8ad2ca commit 0cb25e3Copy full SHA for 0cb25e3
docker/Dockerfile
@@ -1,8 +1,23 @@
1
+####
2
+# This Dockerfile is used in order to build a container that runs the Spring Boot application
3
+#
4
+# Build the image with:
5
6
+# docker build -f docker/Dockerfile -t python/sample-basic .
7
8
+# Then run the container using:
9
10
+# docker run -i --rm -p 8080:8080 python/sample-basic
11
12
FROM python:slim
13
14
WORKDIR /projects
15
COPY . .
-RUN pip install --user -r requirements.txt
16
+
17
+RUN python3 -m venv venv
18
+RUN . venv/bin/activate
19
+RUN pip install -r requirements.txt
20
21
EXPOSE 8080
-CMD [ "python", "app.py" ]
22
+CMD [ "python", "app.py"]
23
0 commit comments