Skip to content

Commit

Permalink
fix(docker): change env vars to vite schema
Browse files Browse the repository at this point in the history
Replace prefix `VUE_` by `VITE_`.
Update option to not delete output dir.
  • Loading branch information
Rotzbua committed Jul 22, 2023
1 parent c4eb370 commit a2efc9b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ services:
environment:
- CODESANDBOX_SSE=1 # so that ws: protocol ends up as auto: in node_modules/@vue/cli-service/lib/commands/serve.js
- CYPRESS_CACHE_FOLDER=/tmp/.cache # https://github.com/cypress-io/cypress/issues/1281#issuecomment-404823001
- VUE_APP_DESECSTACK_NS=${DESECSTACK_NS}
- VUE_APP_DESECSTACK_API_SEPA_CREDITOR_ID=${DESECSTACK_API_SEPA_CREDITOR_ID}
- VUE_APP_DESECSTACK_API_SEPA_CREDITOR_NAME=${DESECSTACK_API_SEPA_CREDITOR_NAME}
- VUE_APP_LOCAL_PUBLIC_SUFFIXES=dedyn.${DESECSTACK_DOMAIN}
- VUE_APP_EMAIL=support@desec.${DESECSTACK_DOMAIN}
- VITE_APP_DESECSTACK_NS=${DESECSTACK_NS}
- VITE_APP_DESECSTACK_API_SEPA_CREDITOR_ID=${DESECSTACK_API_SEPA_CREDITOR_ID}
- VITE_APP_DESECSTACK_API_SEPA_CREDITOR_NAME=${DESECSTACK_API_SEPA_CREDITOR_NAME}
- VITE_APP_LOCAL_PUBLIC_SUFFIXES=dedyn.${DESECSTACK_DOMAIN}
- VITE_APP_EMAIL=support@desec.${DESECSTACK_DOMAIN}
networks:
- rearwebapp
logging:
Expand Down
12 changes: 6 additions & 6 deletions www/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ ARG DESECSTACK_API_SEPA_CREDITOR_ID
ARG DESECSTACK_API_SEPA_CREDITOR_NAME
ARG DESECSTACK_DOMAIN
ARG DESECSTACK_NS
ENV VUE_APP_DESECSTACK_NS=${DESECSTACK_NS} \
VUE_APP_DESECSTACK_API_SEPA_CREDITOR_ID=${DESECSTACK_API_SEPA_CREDITOR_ID} \
VUE_APP_DESECSTACK_API_SEPA_CREDITOR_NAME=${DESECSTACK_API_SEPA_CREDITOR_NAME} \
VUE_APP_LOCAL_PUBLIC_SUFFIXES=dedyn.${DESECSTACK_DOMAIN} \
VUE_APP_EMAIL=support@desec.${DESECSTACK_DOMAIN}
ENV VITE_APP_DESECSTACK_NS=${DESECSTACK_NS} \
VITE_APP_DESECSTACK_API_SEPA_CREDITOR_ID=${DESECSTACK_API_SEPA_CREDITOR_ID} \
VITE_APP_DESECSTACK_API_SEPA_CREDITOR_NAME=${DESECSTACK_API_SEPA_CREDITOR_NAME} \
VITE_APP_LOCAL_PUBLIC_SUFFIXES=dedyn.${DESECSTACK_DOMAIN} \
VITE_APP_EMAIL=support@desec.${DESECSTACK_DOMAIN}

COPY webapp/ /usr/src/app/
RUN npm run build -- --no-clean
RUN npm run build -- --emptyOutDir false


FROM nginx:mainline-alpine
Expand Down

0 comments on commit a2efc9b

Please sign in to comment.