This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
FROM python:3.12-alpine AS venv
|
||||
RUN ["mkdir", "-p", "/app"]
|
||||
COPY ["bot.py", "/app/bot.py"]
|
||||
COPY ["start.sh", "/app/start.sh"]
|
||||
COPY ["install.sh", "/app/install.sh"]
|
||||
RUN ["sh", "/app/install.sh"]
|
||||
|
||||
FROM scratch
|
||||
COPY --from=venv / /
|
||||
USER 1455:1455
|
||||
ENTRYPOINT ["/app/start.sh"]
|
Reference in New Issue
Block a user