You've already forked Curso-lenguaje-python
Add movie Bot for Telegram
This commit is contained in:
26
catch-all/06_bots_telegram/06_movie_bot/Dockerfile
Normal file
26
catch-all/06_bots_telegram/06_movie_bot/Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
FROM python:alpine
|
||||
|
||||
ADD requirements.txt /app/requirements.txt
|
||||
|
||||
RUN apk update && apk upgrade && \
|
||||
apk add --no-cache bash && \
|
||||
rm -rf /var/cache/apk/* && \
|
||||
set -ex && \
|
||||
python -m venv /env && \
|
||||
/env/bin/pip install --upgrade pip && \
|
||||
/env/bin/pip install --no-cache-dir -r /app/requirements.txt && \
|
||||
runDeps="$(scanelf --needed --nobanner --recursive /env \
|
||||
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
|
||||
| sort -u \
|
||||
| xargs -r apk info --installed \
|
||||
| sort -u)" && \
|
||||
apk add --virtual rundeps $runDeps && \
|
||||
apk del rundeps
|
||||
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
|
||||
ENV VIRTUAL_ENV=/env
|
||||
ENV PATH=/env/bin:$PATH
|
||||
|
||||
CMD ["python", "main.py"]
|
||||
Reference in New Issue
Block a user