deploy on hafen

This commit is contained in:
Lukas Werner
2025-07-01 18:23:27 -07:00
parent 4cd69217cc
commit 93dd0586ad
5 changed files with 190 additions and 4 deletions
+26
View File
@@ -0,0 +1,26 @@
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"]