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
|
2020-01-13 21:37:09 +00:00
|
|
|
RUN apt-get -y install mime-support
|
2019-07-03 15:18:29 +00:00
|
|
|
|
|
|
|
# Install requirements and uwsgi server for running python web apps
|
2019-07-04 23:26:52 +00:00
|
|
|
WORKDIR /etc/linkding
|
2019-07-03 15:18:29 +00:00
|
|
|
COPY requirements.prod.txt ./requirements.txt
|
|
|
|
RUN pip install -U pip
|
|
|
|
RUN pip install -Ur requirements.txt
|
|
|
|
|
|
|
|
# Copy application
|
2019-07-04 23:26:52 +00:00
|
|
|
COPY . .
|
2019-07-03 17:50:25 +00:00
|
|
|
|
2019-07-04 23:26:52 +00:00
|
|
|
# Expose uwsgi server at port 9090
|
2019-07-03 15:18:29 +00:00
|
|
|
EXPOSE 9090
|
|
|
|
|
2019-07-04 23:26:52 +00:00
|
|
|
# Run bootstrap logic
|
|
|
|
RUN ["chmod", "+x", "./bootstrap.sh"]
|
2019-07-03 15:18:29 +00:00
|
|
|
CMD ["./bootstrap.sh"]
|