2020-05-13 21:56:35 +03:00
|
|
|
FROM python:3.8-slim
|
2020-04-08 23:05:28 +03:00
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
2020-05-13 21:56:35 +03:00
|
|
|
RUN apt-get update && apt-get install -y build-essential libcurl4-openssl-dev libssl-dev
|
2020-05-10 15:00:22 +03:00
|
|
|
COPY requirements.txt .
|
2020-04-25 02:23:08 +03:00
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
2020-05-10 15:00:22 +03:00
|
|
|
|
2020-05-14 03:27:04 +03:00
|
|
|
ARG config_dir=/config
|
2020-05-16 18:11:00 +03:00
|
|
|
RUN mkdir -p $config_dir
|
2020-05-14 03:27:04 +03:00
|
|
|
VOLUME $config_dir
|
|
|
|
ENV CONFIG_VOLUME=$config_dir
|
|
|
|
|
2020-05-16 00:44:50 +03:00
|
|
|
ARG use_https=''
|
|
|
|
ENV HTTPS_ONLY=$use_https
|
|
|
|
|
|
|
|
ARG whoogle_port=5000
|
|
|
|
ENV EXPOSE_PORT=$whoogle_port
|
|
|
|
|
2020-05-10 15:00:22 +03:00
|
|
|
COPY . .
|
2020-04-08 23:05:28 +03:00
|
|
|
|
2020-05-16 00:44:50 +03:00
|
|
|
EXPOSE $EXPOSE_PORT
|
2020-05-10 15:00:22 +03:00
|
|
|
|
2020-05-16 01:47:39 +03:00
|
|
|
CMD ["./run"]
|