JMAP
Some checks failed
Docker Deploy / build-and-push (push) Has been cancelled

This commit is contained in:
Atridad Lahiji 2025-01-23 16:48:19 -06:00
parent c9b31d53c7
commit ae039f00b6
Signed by: atridad
SSH key fingerprint: SHA256:LGomp8Opq0jz+7kbwNcdfTcuaLRb5Nh0k5AchDDb438
2 changed files with 12 additions and 6 deletions

View file

@ -1,13 +1,18 @@
FROM node:lts-alpine as runtime FROM node:lts AS runtime
WORKDIR /app WORKDIR /app
# Copy files
COPY . . COPY . .
# Install pnpm
RUN npm i -g pnpm RUN npm i -g pnpm
# Install dependencies and build
RUN pnpm install RUN pnpm install
RUN pnpm run build RUN pnpm run build
ENV HOST=0.0.0.0 ENV HOST=0.0.0.0
ENV PORT=4321 ENV PORT=4321
EXPOSE 4321 EXPOSE 4321
CMD node ./dist/server/entry.mjs
CMD ["node", "./dist/server/entry.mjs"]

View file

@ -4,8 +4,9 @@ services:
ports: ports:
- "${APP_PORT}:4321" - "${APP_PORT}:4321"
environment: environment:
- JMAP_ACCESS_TOKEN=${JMAP_ACCESS_TOKEN} NODE_ENV: production
- JMAP_ACCOUNT_ID=${JMAP_ACCOUNT_ID} JMAP_ACCESS_TOKEN: ${JMAP_ACCESS_TOKEN}
- FROM_EMAIL=${FROM_EMAIL} JMAP_ACCOUNT_ID: ${JMAP_ACCOUNT_ID}
- TO_EMAIL=${TO_EMAIL} FROM_EMAIL: ${FROM_EMAIL}
TO_EMAIL: ${TO_EMAIL}
restart: unless-stopped restart: unless-stopped