bsky-dj/Dockerfile

26 lines
778 B
Docker
Raw Normal View History

2024-11-14 12:12:53 +01:00
FROM python:3.11 as base
WORKDIR /code
# Install base system dependences
RUN apt-get -qq update && \
apt-get -qq -y --no-install-recommends install curl net-tools \
netcat-traditional automake autoconf sudo watch gettext locales \
apt-transport-https ca-certificates libsasl2-dev \
python3-dev python3-pydot && \
rm -rf /var/lib/apt/lists/* && \
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
echo "es_ES.UTF-8 UTF-8" >> /etc/locale.gen && \
ln -fs /usr/share/zoneinfo/CET /etc/localtime
# Install code dependencies
COPY src/requirements.txt /code/requirements.txt
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
VOLUME /code
COPY docker/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["bash"]