Skip to content

Instantly share code, notes, and snippets.

@esirK
Created April 4, 2022 11:26
Show Gist options
  • Save esirK/2b4fc96d7625b6b9d78a7eabced22eff to your computer and use it in GitHub Desktop.
Save esirK/2b4fc96d7625b6b9d78a7eabced22eff to your computer and use it in GitHub Desktop.
FROM cfa/base_image as base
EXPOSE 8000
# Install Python dependencies specific to debunkbot
COPY requirements.txt /var/tmp/
RUN pip3 install -r /var/tmp/requirements.txt && rm /var/tmp/requirements.txt && rm -rf /root/.cache/
COPY . /opt/cfa/src/debunkbot/
# Update PYTHONPATH
ENV PYTHONPATH=$PYTHONPATH:/opt/cfa/src/debunkbot/
CMD [ "python3", "/opt/cfa/src/debunkbot/manage.py", "runserver", "0.0.0.0:8000" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment