1
0
Fork 0
mirror of synced 2024-06-16 09:14:39 +12:00
bulk-downloader-for-reddit/Dockerfile

28 lines
762 B
Docker
Raw Normal View History

FROM python:3.9
LABEL Description="This image enables running Buld Downloader for Reddit with in a container environment" Version="0.0.1"
ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 1
2020-06-06 02:23:45 +12:00
EXPOSE 8080
EXPOSE 7634
2021-03-01 18:55:50 +13:00
# Install dependencies
RUN apt-get update \
2021-03-01 18:55:50 +13:00
&& apt-get install -y build-essential \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/*
2021-03-01 18:55:50 +13:00
# Python requirements
COPY requirements.txt /requirements.txt
RUN pip install --no-cache-dir -r /requirements.txt \
2021-03-01 18:55:50 +13:00
&& rm -rf /requirements.txt
2021-03-01 18:55:50 +13:00
# Copy over project files
COPY . /bdfr
WORKDIR /bdfr
2021-03-01 18:55:50 +13:00
# Useful so the image doubles as reference to the binary
ENTRYPOINT ["python", "script.py"]
CMD ["python", "script.py", "-d", "downloads"]