Skip to content

Commit

Permalink
Changed base image to alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
tibor309 committed Dec 22, 2024
1 parent bd31ea4 commit 9e63b63
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12-slim-bookworm
FROM python:3.12-alpine

# set labels
LABEL org.opencontainers.image.title="Orbit"
Expand All @@ -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"]

0 comments on commit 9e63b63

Please sign in to comment.