mirror of
https://github.com/h44z/wg-portal
synced 2025-02-26 05:49:14 +00:00
Use Alpine base image (#205)
wgquick (apparently) depends on bash and openresolv. Without those packages removing an Interface is impossible and causes an error message to appear in the webui: - No Bash: exec complains about "bash no such file in $PATH" - No openresolv: resolvconf -f -d *interface* returns with error 127 Not having a Shell in the container also makes debugging a lot more annoying. This enables deletion of interfaces in the webui, eases debugging and only adds about 3MB in size.
This commit is contained in:
parent
1f47075020
commit
4a0fcfbf60
10
Dockerfile
10
Dockerfile
@ -30,16 +30,14 @@ RUN echo "Building version '$ENV_BUILD_IDENTIFIER-$ENV_BUILD_VERSION' for platfo
|
|||||||
######-
|
######-
|
||||||
# Here starts the main image
|
# Here starts the main image
|
||||||
######-
|
######-
|
||||||
FROM scratch
|
FROM alpine:3.19
|
||||||
|
|
||||||
|
# Install OS-level dependencies
|
||||||
|
RUN apk add --no-cache bash openresolv
|
||||||
|
|
||||||
# Setup timezone
|
# Setup timezone
|
||||||
ENV TZ=Europe/Vienna
|
ENV TZ=Europe/Vienna
|
||||||
|
|
||||||
# Import linux stuff from builder.
|
|
||||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
||||||
COPY --from=builder /etc/passwd /etc/passwd
|
|
||||||
COPY --from=builder /etc/group /etc/group
|
|
||||||
|
|
||||||
# Copy binaries
|
# Copy binaries
|
||||||
COPY --from=builder /build/dist/wg-portal /app/wg-portal
|
COPY --from=builder /build/dist/wg-portal /app/wg-portal
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user