File: Dockerfile

package info (click to toggle)
etesync-dav 0.20.4-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 560 kB
  • sloc: python: 1,503; sh: 29; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 428 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.7-stretch

ENV ETESYNC_DATA_DIR "/data"
ENV ETESYNC_SERVER_HOSTS "0.0.0.0:37358,[::]:37358"

# Make this file a build dep for the next steps
COPY requirements.txt /app/
RUN pip install -r /app/requirements.txt

COPY . /app
RUN pip install /app

RUN set -ex ;\
        useradd etesync ;\
        mkdir -p /data ;\
        chown -R etesync: /data

VOLUME /data
EXPOSE 37358

USER etesync

ENTRYPOINT ["etesync-dav"]