linkding/Dockerfile

30 lines
633 B
Docker
Raw Normal View History

2019-07-03 15:18:29 +00:00
FROM python:3.7-slim-stretch
# Install packages required for uswgi
RUN apt-get update
RUN apt-get -y install build-essential
# Install requirements and uwsgi server for running python web apps
WORKDIR /etc/linkdings
COPY requirements.prod.txt ./requirements.txt
RUN pip install -U pip
RUN pip install -Ur requirements.txt
RUN pip install uwsgi
# Copy application
COPY bookmarks ./bookmarks
COPY siteroot ./siteroot
COPY static ./static
COPY manage.py .
COPY uwsgi.ini .
COPY bootstrap.sh .
RUN ["chmod", "+x", "./bootstrap.sh"]
2019-07-03 17:50:25 +00:00
# Create data folder
RUN ["mkdir", "data"]
2019-07-03 15:18:29 +00:00
EXPOSE 9090
# Start uwsgi server
CMD ["./bootstrap.sh"]