-
Notifications
You must be signed in to change notification settings - Fork 859
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "使用本地lightsocks-server文件构建docker镜像"
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |