-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_alpine
38 lines (32 loc) · 1.09 KB
/
Dockerfile_alpine
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
37
38
FROM digrouz/alpine-s6:latest
LABEL maintainer "DI GREGORIO Nicolas <nicolas.digregorio@gmail.com>"
ARG SYNCTHING_VERSION='1.29.2'
ARG SYNCTHING_ARCH='amd64'
### Environment variables
ENV LANG='en_US.UTF-8' \
LANGUAGE='en_US.UTF-8' \
TERM='xterm' \
SYNCTHING_VERSION="${SYNCTHING_VERSION}" \
SYNCTHING_ARCH="${SYNCTHING_ARCH}"
# Copy config files
COPY root/ /
### Install Application
RUN set -x && \
apk update --no-cache && \apk upgrade --no-cache && \
apk add --no-cache --virtual=build-deps \
curl \
&& \
curl -SsL https://github.com/syncthing/syncthing/releases/download/v${SYNCTHING_VERSION}/syncthing-linux-${SYNCTHING_ARCH}-v${SYNCTHING_VERSION}.tar.gz -o /tmp/syncthing.tar.gz && \
tar xzvf /tmp/syncthing.tar.gz -C /tmp && \
mv /tmp/syncthing-linux-amd64-v${SYNCTHING_VERSION} /opt/syncthing && \
apk add --no-cache --virtual=run-deps \
ca-certificates \
&& \
mkdir -p /config && \
rm -rf /tmp/* \
/var/cache/apk/* \
/var/tmp/*
# Expose volumes
VOLUME ["/config"]
# Expose ports
EXPOSE 8384 22000 21027/udp