Files
2026-06-15 14:41:23 -07:00

27 lines
412 B
Docker

FROM node:20
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
WORKDIR /src
# Deps Stage
COPY package.json .
RUN npm i
# Build Stage
COPY . .
RUN pnpm run build
ENV HOST 0.0.0.0
ENV PORT 3000
# This is the default port sveltekit servers in prod listen to
EXPOSE 3000
# CHANGEME this is your domain and proto
ENV ORIGIN https://weather.lukaswerner.com
# Run stage
CMD ["node", "build"]