mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-08 03:08:29 +02:00
Create docker image
This commit is contained in:
26
Dockerfile
Normal file
26
Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
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"]
|
||||
|
||||
EXPOSE 9090
|
||||
|
||||
# Start uwsgi server
|
||||
CMD ["./bootstrap.sh"]
|
Reference in New Issue
Block a user