diff options
author | crupest <crupest@outlook.com> | 2024-01-12 18:17:55 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-01-12 18:17:55 +0800 |
commit | 7e2d0a8ed4c25624dfb470d2ced309c6e679ddec (patch) | |
tree | e99e0fa8170e284db5ce8239403c7457c99ae07e | |
parent | 0e8f8eebe1543dafb10ed0d1f7087ffa89a295ea (diff) | |
download | crupest-7e2d0a8ed4c25624dfb470d2ced309c6e679ddec.tar.gz crupest-7e2d0a8ed4c25624dfb470d2ced309c6e679ddec.tar.bz2 crupest-7e2d0a8ed4c25624dfb470d2ced309c6e679ddec.zip |
docker(secret): build image by ourselves.
-rw-r--r-- | docker/crupest-v2ray/Dockerfile | 6 | ||||
-rw-r--r-- | template/docker-compose.yaml.template | 9 |
2 files changed, 13 insertions, 2 deletions
diff --git a/docker/crupest-v2ray/Dockerfile b/docker/crupest-v2ray/Dockerfile new file mode 100644 index 0000000..003b545 --- /dev/null +++ b/docker/crupest-v2ray/Dockerfile @@ -0,0 +1,6 @@ +FROM alpine:edge + +RUN apk add --no-cache v2ray + +ENTRYPOINT [ "/usr/bin/v2ray" ] + diff --git a/template/docker-compose.yaml.template b/template/docker-compose.yaml.template index 8b2f014..a8a3be8 100644 --- a/template/docker-compose.yaml.template +++ b/template/docker-compose.yaml.template @@ -56,8 +56,13 @@ services: - "./crupest-api-config.json:/crupest-api-config.json:ro"
v2ray:
- image: v2fly/v2fly-core:latest
- pull_policy: always
+ pull_policy: build
+ build:
+ context: ./docker/crupest-v2ray
+ dockerfile: Dockerfile
+ pull: true
+ tags:
+ - "crupest/crupest-v2ray:latest"
command: [ "run", "-c", "/etc/v2fly/config.json" ]
container_name: v2ray
restart: on-failure:3
|