Skip to content
This repository was archived by the owner on Mar 30, 2020. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand All @@ -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 <https://github.com/xataz>" \
build_ver="201812081215"
build_ver="201909260845"

RUN apk add --update --no-cache --virtual .build-deps \
build-base \
Expand All @@ -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 \
Expand Down
21 changes: 21 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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: