Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vlameiras committed Dec 11, 2021
1 parent 67d6d05 commit bcc89fb
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 bcc89fb

Please sign in to comment.