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 ab5ef7b commit eff1debCopy full SHA for eff1deb
Dockerfile
@@ -1,5 +1,7 @@
1
FROM python:3.10.7-bullseye as build
2
3
+RUN mkdir -p /builddir
4
+WORKDIR /builddir
5
COPY ./ ./
6
RUN pip install -r requirements-test.txt
7
RUN python -m build
@@ -18,7 +20,8 @@ RUN useradd --uid 1000 --create-home --shell /bin/bash nonroot
18
20
USER nonroot
19
21
ENV PATH "$PATH:/home/nonroot/.local/bin"
22
-COPY --from=build /dist/jsonparse-${VERSION}-py3-none-any.whl ./
23
+WORKDIR /home/nonroot
24
+COPY --from=build /builddir/dist/jsonparse-${VERSION}-py3-none-any.whl ./
25
RUN pip install --user jsonparse-${VERSION}-py3-none-any.whl[webapi]
26
27
CMD ["sh", "-c", "exec gunicorn -b 0.0.0.0:${PORT:-8000} jsonparse.webapi:app"]
0 commit comments