Compare commits

..

1 Commits

2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ FROM node:19-alpine3.15 AS frontend-builder
COPY ../frontend /app COPY ../frontend /app
RUN apk add --update python3 make g++ && cd /app && npm install && npm run build RUN apk add --update python3 make g++ && cd /app && npm install && npm run build
FROM golang:1.24.2-bullseye AS backend-builder FROM golang:1.24.1-bullseye AS backend-builder
RUN go install github.com/gobuffalo/packr/v2/packr2@latest RUN go install github.com/gobuffalo/packr/v2/packr2@latest
COPY --from=frontend-builder /app/static /app/frontend/static COPY --from=frontend-builder /app/static /app/frontend/static
COPY .. /app COPY .. /app

View File

@ -21,10 +21,10 @@ else
done done
else else
echo "Generating new certs" echo "Generating new certs"
easyrsa --batch init-pki easyrsa init-pki
cp -R /usr/share/easy-rsa/* $EASY_RSA_LOC/pki cp -R /usr/share/easy-rsa/* $EASY_RSA_LOC/pki
echo "ca" | easyrsa build-ca nopass echo "ca" | easyrsa build-ca nopass
easyrsa --batch build-server-full server nopass easyrsa build-server-full server nopass
easyrsa gen-dh easyrsa gen-dh
openvpn --genkey --secret ./pki/ta.key openvpn --genkey --secret ./pki/ta.key
fi fi