mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Add Dockerfile
This commit is contained in:
parent
3a6fe133da
commit
056693a1f5
4 changed files with 61 additions and 16 deletions
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
FROM node:24-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN yarn install --frozen-lockfile
|
||||
RUN yarn build
|
||||
|
||||
FROM node:24-alpine AS dependencies
|
||||
WORKDIR /app
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn install --production --frozen-lockfile
|
||||
|
||||
FROM node:24-alpine AS runner
|
||||
WORKDIR /app
|
||||
ENV HOST=0.0.0.0
|
||||
ENV PORT=80
|
||||
EXPOSE 80
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY --from=dependencies /app/node_modules ./node_modules
|
||||
CMD ["node", "./dist/server/entry.mjs"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue