The problem was that the working directory was being changed to app and since requirements.txt is actually in the root folder not the app directory the command to install this wasn't running correctly
This commit is contained in:
Wasi Master
2023-11-01 23:35:34 +06:00
parent 9e73750c90
commit 783b6936bb
+2 -2
View File
@@ -18,9 +18,9 @@ LABEL org.opencontainers.image.description="My own custom 12ft.io replacement"
LABEL org.opencontainers.image.documentation="https://github.com/wasi-master/13ft/blob/main/README.md" LABEL org.opencontainers.image.documentation="https://github.com/wasi-master/13ft/blob/main/README.md"
LABEL org.opencontainers.image.licenses=MIT LABEL org.opencontainers.image.licenses=MIT
COPY /app /app COPY . .
WORKDIR /app
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
WORKDIR /app
EXPOSE 5000 EXPOSE 5000
ENTRYPOINT [ "python" ] ENTRYPOINT [ "python" ]
CMD [ "portable.py" ] CMD [ "portable.py" ]