-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (15 loc) · 730 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (15 loc) · 730 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
ARG IMAGE_TAG
FROM registry.livelace.ru/dev/webchela:${IMAGE_TAG}
ENV PIP_CONFIG_FILE="pip.conf"
ENV WEBCHELA_DIR="/home/user/webchela"
COPY "work/assets/supervisord.ini" "/etc/supervisord.conf"
USER "user"
# install webchela.
COPY "work" "$WEBCHELA_DIR"
RUN cd "$WEBCHELA_DIR" && \
python -m venv venv && source ./venv/bin/activate && \
pip install --no-cache-dir -r "requirements.txt" && \
pip install --no-cache-dir .
ENV PATH=$PATH:"/home/user/webchela/venv/bin"
WORKDIR "/home/user"
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]