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
# Copy files
COPY . .
# Install pnpm
RUN npm i -g pnpm
# Install dependencies and build
RUN pnpm install
RUN pnpm run build
ENV HOST=0.0.0.0
ENV PORT=4321
EXPOSE 4321
CMD node ./dist/server/entry.mjs
CMD ["node", "./dist/server/entry.mjs"]

View file

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