-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (33 loc) · 895 Bytes
/
Dockerfile
File metadata and controls
36 lines (33 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM ubuntu:xenial
RUN apt-get update && apt-get install -y \
libpq-dev \
libffi-dev \
python3-dev \
libjpeg-dev \
build-essential \
python3-pip \
git
RUN pip3 install -U pip
RUN pip install alembic gunicorn
ENV TRACKER_DSN=postgresql://lost@database/lost
ENV TRACKER_HELPDESK=
ENV TRACKER_PHOTO_FOLDER=/data/photos
ENV TRACKER_HTTP_LOGIN=http_login
ENV TRACKER_HTTP_PASSWORD=http_passwd
ENV TRACKER_SECRET_KEY=unsecure
ENV TRACKER_SHOUT=
ENV TRACKER_FLICKR_API_KEY=
COPY dist-requirements.txt /
COPY dist/docker.tar.gz /
COPY entry-point.bash /
RUN mkdir -p /alembic
ADD alembic /alembic/alembic
ADD alembic.ini /alembic
RUN chmod +x /entry-point.bash
RUN pip install -r /dist-requirements.txt
RUN pip install /docker.tar.gz
RUN mkdir -p /etc/mamerwiselen/lost-tracker
COPY app.ini.dist /
COPY materialize_config.py /
EXPOSE 8080
ENTRYPOINT ["/entry-point.bash"]