Edit Dockerfile

This commit is contained in:
TheJoKlLa 2023-02-07 04:21:34 +01:00
parent b84979862e
commit 7469a62eff

View File

@ -1,9 +1,13 @@
FROM ubuntu:22.04 FROM python:3.10.4-bullseye
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -yqq --no-install-recommends python3 python3-pip
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y cmake capnproto clang gcc build-essential
RUN pip3 install -r requirements.txt RUN pip3 install -r requirements.txt
RUN chmod u+x main.py
ENTRYPOINT ["/app/main.py"] VOLUME /app/config
CMD [ "python3", "main.py"]
EXPOSE 9877