Commit 8f1065ca authored by nanahira's avatar nanahira

errexit on sftp

parent 22d46b75
Pipeline #638 canceled with stages
in 1 minute and 1 second
...@@ -5,13 +5,13 @@ ARG VERSION ...@@ -5,13 +5,13 @@ ARG VERSION
ENV SFTP_VERSION=${VERSION} \ ENV SFTP_VERSION=${VERSION} \
UID=500 UID=500
RUN mkdir /srv/daemon -p; \ RUN mkdir /srv/daemon -p && \
wget -P /srv/daemon https://github.com/pterodactyl/sftp-server/releases/download/${SFTP_VERSION}/sftp-server; \ wget -P /srv/daemon https://github.com/pterodactyl/sftp-server/releases/download/${SFTP_VERSION}/sftp-server && \
chmod +x /srv/daemon/sftp-server; \ chmod +x /srv/daemon/sftp-server && \
addgroup -S -g ${UID} pterodactyl && adduser -S -D -H -G pterodactyl -u ${UID} -s /bin/false pterodactyl addgroup -S -g ${UID} pterodactyl && adduser -S -D -H -G pterodactyl -u ${UID} -s /bin/false pterodactyl
EXPOSE 2022 EXPOSE 2022
WORKDIR /srv/daemon WORKDIR /srv/daemon
ENTRYPOINT [ "./sftp-server" ] ENTRYPOINT [ "./sftp-server" ]
CMD [ "-port", "2022" ] CMD [ "-port", "2022" ]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment