Skip to content

Commit b6cdd50

Browse files
committed
update Dockerfile
1 parent c61f5f1 commit b6cdd50

File tree

2 files changed

+12
-289
lines changed

2 files changed

+12
-289
lines changed

Dockerfile

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1-
FROM python:3.12-alpine
1+
FROM alpine:latest
2+
RUN apk --no-cache add ca-certificates
23

3-
WORKDIR /app
4+
ARG IMAGE_TAG
5+
ENV IMAGE_TAG=$IMAGE_TAG
6+
LABEL org.opencontainers.image.version=$IMAGE_TAG
7+
8+
ARG TARGETOS
9+
ARG TARGETARCH
410

5-
RUN pip install docker
11+
WORKDIR /app
612

713
COPY . .
814

9-
ENV PORT=4531
15+
COPY dist/${TARGETOS}/${TARGETARCH}/app .
1016

11-
EXPOSE ${PORT}
17+
RUN rm dist/ -r
1218

13-
CMD ["python", "app.py"]
19+
CMD ["./app"]

app.py

Lines changed: 0 additions & 283 deletions
This file was deleted.

0 commit comments

Comments
 (0)