mirror of
https://github.com/warp-tech/warpgate.git
synced 2025-02-23 06:55:25 +08:00
updated image to reflect changes as discussed per https://github.com/Eugeny/warpgate/pull/16\#issuecomment-1096799219
This commit is contained in:
parent
50af5fe2c9
commit
cf9d78eef6
2 changed files with 7 additions and 4 deletions
|
@ -15,12 +15,12 @@ RUN cd /opt/warpgate \
|
|||
&& just yarn \
|
||||
&& just openapi \
|
||||
&& just yarn build \
|
||||
&& cargo build
|
||||
&& cargo build --release
|
||||
|
||||
FROM debian:bullseye
|
||||
LABEL maintainer=heywoodlh
|
||||
|
||||
COPY --from=build /opt/warpgate/target/debug/warpgate /usr/local/bin/warpgate
|
||||
COPY --from=build /opt/warpgate/target/release/warpgate /usr/local/bin/warpgate
|
||||
COPY docker/run.sh /run.sh
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
|
||||
password_hash=$(echo -n "${ADMIN_PASS}" | warpgate hash | cat)
|
||||
|
||||
cat << EOF > /etc/warpgate.yaml
|
||||
|
||||
[[ -f '/data/warpgate.yaml' ]] || cat << EOF > /data/warpgate.yaml
|
||||
---
|
||||
targets:
|
||||
- name: web-admin
|
||||
|
@ -39,4 +40,6 @@ ssh:
|
|||
retention: 7days
|
||||
EOF
|
||||
|
||||
warpgate -c /etc/warpgate.yaml $@
|
||||
[[ -L /etc/warpgate.yaml ]] || ln -s /data/warpgate.yaml /etc/warpgate.yaml
|
||||
|
||||
warpgate $@
|
||||
|
|
Loading…
Reference in a new issue