Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Logs
logs
*.log
npm-debug.log*

# NPM
node_modules/*

# Build output
dist/
.astro/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Just in case somebody runs the wrong command
yarn.lock
pnpm-lock.yaml
tsconfig.tsbuildinfo
bun.lockb

# Mac shit
.DS_Store
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM node:slim

WORKDIR /app

COPY . .

ENV NODE_ENV=production

COPY package.json package-lock.json .
RUN npm ci

COPY . .
RUN npm run build

ENV HOST="0.0.0.0"
CMD [ "node", "run", "./dist/server/entry.mjs" ]
CMD [ "node", "./dist/server/entry.mjs" ]