15 lines
395 B
Docker
15 lines
395 B
Docker
FROM python:3.10.4-slim-bullseye
|
|
|
|
WORKDIR /app
|
|
RUN mkdir keys
|
|
RUN mkdir nagrest
|
|
COPY requirements.txt ./
|
|
COPY app/* ./
|
|
COPY lib/* ./nagrest/
|
|
COPY keys/* ./keys/
|
|
RUN pip3 install --no-cache-dir -r requirements.txt
|
|
RUN apt update && apt upgrade && apt install -y gnupg
|
|
RUN ["/bin/bash", "-c", "pwd && ls -l"]
|
|
RUN ["/bin/bash", "-c", "gpg --import /app/keys/*.asc"]
|
|
|
|
CMD [ "python3", "./main.py" ]
|