steamgifts-bot/Dockerfile

26 lines
507 B
Text
Raw Normal View History

FROM python:3.9-alpine
2022-05-14 06:47:15 +02:00
RUN apk add tzdata build-base libffi-dev py3-cffi --no-cache
RUN mkdir -p /app/src
WORKDIR /app
2022-04-24 19:48:52 +02:00
ENV TZ=America/New_York
ENV VIRTUAL_ENV=/src/env
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
ENV BOT_CONFIG_DIR="../config"
ENV BOT_DB_URL="sqlite:///../config/sqlite.db"
ENV BOT_ALEMBIC_CONFIG="./src/alembic"
RUN python -m venv $VIRTUAL_ENV
COPY requirements.txt /app/
RUN pip3 install -r requirements.txt
COPY ./src/ /app/src/
COPY main.py /app/
2022-04-23 21:00:22 +02:00
VOLUME /config
CMD ["python3", "main.py"]