mirror of
https://github.com/alexohneander/alexohneander-astro.git
synced 2025-06-28 22:41:53 +00:00
11 lines
238 B
Docker
11 lines
238 B
Docker
FROM node:lts AS build
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM nginx:alpine AS runtime
|
|
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
EXPOSE 8080 |