Files
meshtastic-bridge/Dockerfile
2023-09-26 17:20:09 -05:00

23 lines
523 B
Docker

# set base image (host OS)
FROM python:3.9
# set the working directory in the container
WORKDIR /code
# copy the dependencies file to the working directory
COPY requirements.txt .
RUN apt-get update && apt-get install -y cargo
# install dependencies
RUN pip install -U pip
RUN pip install setuptools_rust wheel
RUN pip install -r requirements.txt
# copy the content of the local src directory to the working directory
COPY main.py .
COPY plugins.py .
# command to run on container start
CMD [ "python", "./main.py" ]