diff --git a/Dockerfile b/Dockerfile index dea5fc6..e57612d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,15 @@ FROM alpine:latest LABEL maintainer.name="Matteo Pietro Dazzi" \ maintainer.email="matteopietro.dazzi@gmail.com" \ - version="1.0.2" \ + version="1.0.3" \ description="OpenVPN client configured for SurfShark VPN" +WORKDIR /vpn ENV SURFSHARK_USER= ENV SURFSHARK_PASSWORD= ENV SURFSHARK_COUNTRY= ENV SURFSHARK_CITY= ENV CONNECTION_TYPE=tcp HEALTHCHECK --interval=60s --timeout=10s --start-period=30s CMD curl -L 'https://ipinfo.io' -RUN apk add --update --no-cache openvpn wget unzip coreutils curl -WORKDIR /vpn COPY startup.sh . -RUN chmod +x ./startup.sh +RUN apk add --update --no-cache openvpn wget unzip coreutils curl && chmod +x ./startup.sh ENTRYPOINT [ "./startup.sh" ]