-
-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (16 loc) · 563 Bytes
/
Dockerfile
File metadata and controls
26 lines (16 loc) · 563 Bytes
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
FROM python:3 as builder
RUN python3 -m venv /opt/virtualenv \
&& apt-get update \
&& apt-get install build-essential
COPY requirements.txt ./
RUN /opt/virtualenv/bin/pip3 install --no-cache-dir -r requirements.txt
FROM python:3-slim
RUN useradd -r -m sungather
COPY --from=builder /opt/virtualenv /opt/virtualenv
WORKDIR /opt/sungather
COPY SunGather/ .
VOLUME /logs
VOLUME /config
COPY SunGather/config-example.yaml /config/config.yaml
USER sungather
CMD [ "/opt/virtualenv/bin/python", "sungather.py", "-c", "/config/config.yaml", "-l", "/logs/" ]