Skip to content

Commit

Permalink
add production dockerfile and multi-stage build for installations #5
Browse files Browse the repository at this point in the history
  • Loading branch information
asuresh-code committed Nov 25, 2024
1 parent 4bba5fe commit cd4ca0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM python:3.12.7-alpine3.20@sha256:edd1d8559c585e1e9a9b79de44ac27f8ac32cb0c7323e112ae6870ceeecd8dbf

FROM python:3.12.7-alpine3.20@sha256:edd1d8559c585e1e9a9b79de44ac27f8ac32cb0c7323e112ae6870ceeecd8dbf AS stage1

COPY requirements.txt ./

Expand All @@ -12,6 +11,8 @@ FROM python:3.12.7-alpine3.20@sha256:edd1d8559c585e1e9a9b79de44ac27f8ac32cb0c732

WORKDIR /object-storage-api-run

COPY --from=stage1 /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
COPY --from=stage1 /usr/local/bin /usr/local/bin

COPY README.md ./
COPY object_storage_api/ object_storage_api/
Expand Down

0 comments on commit cd4ca0e

Please sign in to comment.