linkding/Dockerfile

23 lines
520 B
Text
Raw Normal View History

2019-07-03 17:18:29 +02:00
FROM python:3.7-slim-stretch
# Install packages required for uswgi
RUN apt-get update
RUN apt-get -y install build-essential
RUN apt-get -y install mime-support
2019-07-03 17:18:29 +02:00
# Install requirements and uwsgi server for running python web apps
2019-07-05 01:26:52 +02:00
WORKDIR /etc/linkding
2019-07-03 17:18:29 +02:00
COPY requirements.prod.txt ./requirements.txt
RUN pip install -U pip
RUN pip install -Ur requirements.txt
# Copy application
2019-07-05 01:26:52 +02:00
COPY . .
2019-07-03 19:50:25 +02:00
2019-07-05 01:26:52 +02:00
# Expose uwsgi server at port 9090
2019-07-03 17:18:29 +02:00
EXPOSE 9090
2019-07-05 01:26:52 +02:00
# Run bootstrap logic
RUN ["chmod", "+x", "./bootstrap.sh"]
2019-07-03 17:18:29 +02:00
CMD ["./bootstrap.sh"]