mirror of
https://github.com/bbilly1/aqi_monitor.git
synced 2024-08-02 16:03:33 +00:00
18 lines
399 B
Docker
18 lines
399 B
Docker
FROM python:3.9.7-slim-bullseye
|
|
|
|
RUN apt-get clean && apt-get -y update && \
|
|
apt-get -y install --no-install-recommends build-essential
|
|
|
|
COPY ./requirements.txt /requirements.txt
|
|
RUN pip install --no-cache-dir -r /requirements.txt --src /usr/local/src
|
|
|
|
COPY . /srv/flask_app
|
|
WORKDIR /srv/flask_app
|
|
|
|
RUN mkdir -p static/dyn/monthly
|
|
RUN chmod 777 -R .
|
|
|
|
RUN chmod +x ./start.sh
|
|
|
|
CMD ["./start.sh"]
|