Untitled

 avatar
unknown
dockerfile
4 years ago
729 B
9
Indexable
FROM python:3.8-buster
RUN apt-get update \
    && apt-get install -y --no-install-recommends \
    && apt-get install -y apt-utils \
    && apt-get install -y  --assume-yes python3-scrapy \
    &&  apt-get install -y locales locales-all dpkg && locale-gen ru_RU.UTF-8 
RUN dpkg-reconfigure locales 
RUN update-locale
WORKDIR /app
RUN  apt-get install -y vim
COPY requirements.txt /app
RUN pip install --no-cache-dir -r requirements.txt
RUN groupadd -r 1 && useradd --no-log-init -r -g 1 1
COPY ./ /app
RUN chown -R 1 /app/templates
# USER 1
ENV FLASK_APP=start_app.py
RUN ln -sf /usr/share/zoneinfo/Europe/Moscow /etc/localtime
COPY $FIREBASE_CREDENTIALS /app/fb.json
EXPOSE 5000
ENTRYPOINT  ["/bin/bash","docker-entrypoint.sh"]
Editor is loading...