Enabled by default in docker containers, but not pip/pipx runs. Command line runs of Whoogle Search through pip/pipx/etc will need the `--https-only` flag appended to the run command.
21 lines
394 B
Docker
21 lines
394 B
Docker
FROM python:3.8-slim
|
|
|
|
WORKDIR /usr/src/app
|
|
RUN apt-get update && apt-get install -y build-essential libcurl4-openssl-dev libssl-dev
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
ARG config_dir=/config
|
|
RUN mkdir $config_dir
|
|
VOLUME $config_dir
|
|
ENV CONFIG_VOLUME=$config_dir
|
|
|
|
ARG use_https=1
|
|
ENV HTTPS_ONLY=$use_https
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 5000
|
|
|
|
CMD ["./whoogle-search"]
|