Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
26aa8a6
1
Parent(s):
613b424
initial commit not good
Browse files- Dockerfile +14 -0
Dockerfile
CHANGED
@@ -1 +1,15 @@
|
|
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
+
|
3 |
+
# Build virtualenv as separate step: Only re-execute this step when pyproject.toml or poetry.lock changes
|
4 |
+
FROM build AS build-venv
|
5 |
+
COPY pyproject.toml poetry.lock /
|
6 |
+
RUN /venv/bin/poetry export -f requirements.txt --without-hashes --output requirements.txt
|
7 |
+
RUN /venv/bin/pip install --disable-pip-version-check -r /requirements.txt
|
8 |
+
|
9 |
+
# Copy the virtualenv into a distroless image
|
10 |
+
FROM gcr.io/distroless/python3-debian11
|
11 |
+
WORKDIR /app
|
12 |
+
COPY --from=build-venv /venv /venv
|
13 |
+
COPY . .
|
14 |
+
ENTRYPOINT ["/venv/bin/python3"]
|
15 |
+
CMD ["-m", "Powers"]
|