You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
495 B
Plaintext
16 lines
495 B
Plaintext
5 years ago
|
FROM python:3
|
||
|
|
||
|
RUN apt-get update
|
||
|
RUN apt-get install python3 python3-venv -y
|
||
5 years ago
|
COPY requirements.txt /tmp/requirements.txt
|
||
|
RUN python3 -m venv /tmp/venv && /tmp/venv/bin/pip install -r /tmp/requirements.txt
|
||
5 years ago
|
COPY . /srv/xmrauctions
|
||
5 years ago
|
RUN ln -s /tmp/venv /srv/xmrauctions/.venv
|
||
5 years ago
|
RUN useradd -s /bin/bash -d /srv/xmrauctions xmrauctions
|
||
5 years ago
|
RUN chown -R xmrauctions:xmrauctions /srv/xmrauctions
|
||
5 years ago
|
RUN chmod +x /srv/xmrauctions/bin/*
|
||
5 years ago
|
USER xmrauctions
|
||
|
WORKDIR /srv/xmrauctions
|
||
|
|
||
|
ENTRYPOINT ["./bin/entrypoint"]
|