Skip to content

Commit

Permalink
Merge pull request #395 from vlameiras/add-docker
Browse files Browse the repository at this point in the history
Add Dockerfile
  • Loading branch information
CryptoGnome authored Dec 11, 2021
2 parents f5c5def + bcc89fb commit de02649
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM python:3.10-slim

RUN apt-get update && \
apt-get install -y python3-pip \
python3-dev

ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

WORKDIR /app

ADD . /app

RUN useradd --create-home limitswap
USER root
RUN chown limitswap:limitswap -R /app/
USER limitswap

RUN pip install --upgrade pip --no-warn-script-location
RUN pip install -r requirements.txt --no-warn-script-location

CMD ["python", "LimitSwap.py"]

0 comments on commit de02649

Please sign in to comment.