mirror of
https://github.com/wireadmin/wireadmin
synced 2025-01-23 04:17:00 +00:00
(fix): build docker image with dummy secrets
This commit is contained in:
parent
034465d17e
commit
78ccf955ff
@ -55,7 +55,11 @@ COPY web .
|
|||||||
|
|
||||||
# build
|
# build
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
RUN npm run build
|
|
||||||
|
RUN export WG_HOST="127.0.0.1" &&\
|
||||||
|
export AUTH_SECRET="$(openssl rand -base64 32)" &&\
|
||||||
|
export HASHED_PASSWORD="$(openssl passwd -6 -salt $(openssl rand -base64 32) $(openssl rand -base64 32))" &&\
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
|
||||||
FROM base AS release
|
FROM base AS release
|
||||||
@ -74,6 +78,5 @@ HEALTHCHECK --interval=60s --timeout=3s --start-period=20s --retries=3 \
|
|||||||
CMD curl -f http://127.0.0.1:3000/api/health || exit 1
|
CMD curl -f http://127.0.0.1:3000/api/health || exit 1
|
||||||
|
|
||||||
# run the app
|
# run the app
|
||||||
USER bun
|
|
||||||
EXPOSE 3000/tcp
|
EXPOSE 3000/tcp
|
||||||
CMD [ "npm", "run", "start" ]
|
CMD [ "npm", "run", "start" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user