Skip to content

Commit

Permalink
Symlink for entrypoint in DH image (#143)
Browse files Browse the repository at this point in the history
* Changing copy and entrypoint location for xray

* Adding symlink

* Keeping entrypoint and symlinks consistent for ECR and DH

* Reverting the ECR dockerfile
  • Loading branch information
srprash authored Jun 1, 2021
1 parent f92e17f commit 6cdc92d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile.amazonlinux
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ COPY --from=build-env /workspace/xray .
COPY --from=build-env /etc/passwd /etc/passwd
COPY --from=build-env /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY pkg/cfg.yaml /etc/amazon/xray/cfg.yaml

RUN ln -s /xray /usr/bin/xray

USER xray
ENTRYPOINT ["/xray", "-t", "0.0.0.0:2000", "-b", "0.0.0.0:2000"]
EXPOSE 2000/udp
Expand Down

0 comments on commit 6cdc92d

Please sign in to comment.