Dockerfile
- Dockerfile that starts the cli.py bot
This commit is contained in:
parent
a154488711
commit
282402d14f
1 changed files with 17 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
FROM python:3.9-alpine
|
||||||
|
|
||||||
|
RUN mkdir -p /app
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# resolves gcc issue with installing regex dependency
|
||||||
|
RUN apk add build-base --no-cache
|
||||||
|
|
||||||
|
ENV VIRTUAL_ENV=/app/env
|
||||||
|
RUN python -m venv $VIRTUAL_ENV
|
||||||
|
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
||||||
|
|
||||||
|
COPY requirements.txt .
|
||||||
|
RUN pip3 install -r requirements.txt
|
||||||
|
|
||||||
|
COPY ./src/* /app/
|
||||||
|
CMD ["python", "cli.py"]
|
Loading…
Reference in a new issue