forked from iarv/meshtastic-bridge
23 lines
523 B
Docker
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" ]
|