-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (19 loc) · 838 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:slim-bullseye
LABEL org.opencontainers.image.authors="Martin Kock <[email protected]>" \
org.opencontainers.image.url="https://github.com/deeagle/rob" \
org.opencontainers.image.licenses="GPL3" \
org.opencontainers.image.title="ROBpy" \
org.opencontainers.image.description="Container for ROBpy instances." \
org.opencontainers.image.vendor="deeagle.de"
RUN apt-get -y update \
&& apt-get -yq upgrade \
&& rm -Rf /var/lib/apt/lists/*
RUN mkdir -p /app/rob
COPY ["src/main.py", "/app/rob/main.py"]
COPY ["src/rob.dist.yml", "/app/rob/rob.dist.yml"]
COPY ["CHANGELOG.md", "/app/rob/CHANGELOG.md"]
COPY ["README.md", "/app/rob/README.md"]
COPY ["requirements.txt", "/app/rob/requirements.txt"]
RUN pip install --no-cache-dir -r /app/rob/requirements.txt
WORKDIR /app/rob
CMD ["/bin/bash"]