Skip to content

Commit

Permalink
Revert "使用本地lightsocks-server文件构建docker镜像"
Browse files Browse the repository at this point in the history
This reverts commit c89d7b7
  • Loading branch information
吴浩麟 committed Oct 17, 2019
1 parent 23ca3d4 commit beb773d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
FROM alpine:latest

LABEL maintainer="gwuhaolin <gwuhaolin@gmail.com>"

ENV LIGHTSOCKS_SERVER_PORT 12315
COPY ./dist/lightsocks-server_linux_amd64/lightsocks-server ./lightsocks-server
ENV LIGHTSOCKS_VERSION 1.0.8
ENV LIGHTSOCKS_DOWNLOAD_URL https://github.com/gwuhaolin/lightsocks/releases/download/${LIGHTSOCKS_VERSION}/lightsocks_${LIGHTSOCKS_VERSION}_linux_amd64.tar.gz

RUN apk upgrade --update
RUN apk add --no-cache curl tar
RUN curl -SLO ${LIGHTSOCKS_DOWNLOAD_URL}
RUN tar -zxf lightsocks_${LIGHTSOCKS_VERSION}_linux_amd64.tar.gz
RUN apk del curl tar
RUN rm -rf lightsocks-local lightsocks_${LIGHTSOCKS_VERSION}_linux_amd64.tar.gz readme.md

EXPOSE ${LIGHTSOCKS_SERVER_PORT}
CMD ./lightsocks-server

0 comments on commit beb773d

Please sign in to comment.