diff --git a/Dockerfile b/Dockerfile index 7827d3e..4f8264b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.12-slim-bookworm +FROM python:3.12-alpine # set labels LABEL org.opencontainers.image.title="Orbit" @@ -8,17 +8,16 @@ LABEL org.opencontainers.image.url=https://github.com/tibor309/orbit/packages LABEL org.opencontainers.image.licenses=GPL-3.0 # install packages -RUN apt update && apt install -y gcc +RUN \ + apk add --no-interactive build-base -# set working directory +# copy files WORKDIR /app +COPY . . # install requirements -COPY requirements.txt requirements.txt -RUN pip3 install -r requirements.txt - -# copy files -COPY . . +RUN \ + pip3 install -r requirements.txt # run the bot CMD ["python3", "main.py"] \ No newline at end of file