Skip to content

Commit

Permalink
modify dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yangziwen committed Sep 18, 2018
1 parent 303ee97 commit 162a288
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
FROM openjdk:8-jre-alpine
WORKDIR /zy-ftp
ENV LOCAL_IP 0.0.0.0
ENV LOCAL_PORT 21
ENV PASSIVE_ADDRESS 127.0.0.1
ENV PASSIVE_PORTS 40000-40060
ENV LOCAL_IP=0.0.0.0 LOCAL_PORT=21 PASSIVE_ADDRESS=127.0.0.1 PASSIVE_PORTS=40000-40060
COPY target/zy-ftp.jar zy-ftp.jar
CMD ["sh", "-c", "java -jar zy-ftp.jar -c server.config -l zy-ftp.log --passive-address $PASSIVE_ADDRESS --passive-ports $PASSIVE_PORTS --local-ip $LOCAL_IP --local-port $LOCAL_PORT"]

0 comments on commit 162a288

Please sign in to comment.