diff --git a/Dockerfile b/Dockerfile index dbe9b3e..ad184c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -FROM alpine:3.8 +FROM alpine:3 -ARG LUFI_VERSION=0.03.5 +ARG LUFI_VERSION=0.04.2 ENV GID=991 \ UID=991 \ @@ -15,9 +15,9 @@ ENV GID=991 \ POLICY_WHEN_FULL=warn LABEL description="lufi based on alpine" \ - tags="latest 0.03.5 0.03" \ + tags="latest 0.04.2 0.03.5 0.03" \ maintainer="xataz " \ - build_ver="201812081215" + build_ver="201909260845" RUN apk add --update --no-cache --virtual .build-deps \ build-base \ @@ -43,7 +43,7 @@ RUN apk add --update --no-cache --virtual .build-deps \ && cpan install Carton \ && git clone -b ${LUFI_VERSION} https://framagit.org/luc/lufi.git /usr/lufi \ && cd /usr/lufi \ - && echo "requires ''Mojo::mysql';" >> /usr/lufi/cpanfile \ + && echo "requires 'Mojo::mysql';" >> /usr/lufi/cpanfile \ && rm -rf cpanfile.snapshot \ && carton install \ && apk del .build-deps \ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..968acd9 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,21 @@ +version: '3' +services: + lufi: + image: xataz/lufi + build: + context: . + environment: + - SECRET=5ec4e381e20ac79220fdba5ab71e4a83 + - CONTACT=your@contact.com + - MAX_DELAY=60 + ports: + - "8081:8081" + restart: always + volumes: + - db:/usr/lufi/data + - files:/usr/lufi/files + +volumes: + db: + files: +