Files
public-weather/Dockerfile
T
2025-07-01 18:23:27 -07:00

27 lines
431 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 pnpm i --frozen-lockfile
# 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"]