All checks were successful
continuous-integration/drone/push Build is passing
18 lines
705 B
Docker
18 lines
705 B
Docker
FROM debian:buster-slim
|
|
ARG REMCO_VER=0.11.1
|
|
RUN apt-get update \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
openvpn unzip wget ca-certificates \
|
|
&& wget https://github.com/HeavyHorst/remco/releases/download/v${REMCO_VER}/remco_${REMCO_VER}_linux_amd64.zip \
|
|
&& unzip remco_${REMCO_VER}_linux_amd64.zip \
|
|
&& rm remco_${REMCO_VER}_linux_amd64.zip \
|
|
&& mv remco_linux /bin/remco \
|
|
&& apt-get purge -y unzip wget ca-certificates \
|
|
&& apt-get autoremove --purge -y \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
COPY config /etc/remco/config
|
|
COPY openvpn_setup.tmpl /etc/remco/templates/openvpn_setup.tmpl
|
|
ENTRYPOINT ["remco"]
|