Merge pull request #94 from qzydustin/docker

Update Dockerfile
This commit is contained in:
e1732a364fed
2022-05-15 09:54:38 +08:00
committed by GitHub
2 changed files with 5 additions and 4 deletions

View File

@@ -4,6 +4,6 @@ WORKDIR /build
RUN git clone https://github.com/e1732a364fed/v2ray_simple.git . && \
make -C ./cmd/verysimple
FROM scratch
COPY --from=builder /build/cmd/verysimple/verysimple /verysimple
ENTRYPOINT ["/verysimple"]
FROM alpine:latest
COPY --from=builder /build/cmd/verysimple/verysimple /bin/verysimple
ENTRYPOINT ["/bin/verysimple"]

View File

@@ -6,5 +6,6 @@ services:
network_mode: "host"
volumes:
- "/etc/verysimple:/etc/verysimple"
- "/etc/domain-list-community:/bin/geosite"
command: -c /etc/verysimple/server.toml
image: verysimple
image: ghcr.io/e1732a364fed/v2ray_simple:latest