21 lines
293 B
Docker
21 lines
293 B
Docker
|
FROM node:22-alpine AS build
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
RUN yarn
|
||
|
|
||
|
RUN yarn build
|
||
|
|
||
|
FROM nginx:alpine AS runtime
|
||
|
|
||
|
RUN rm /etc/nginx/conf.d/default.conf
|
||
|
|
||
|
COPY nginx.conf /etc/nginx/conf.d
|
||
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||
|
|
||
|
EXPOSE 80
|
||
|
|
||
|
# Start Nginx
|
||
|
CMD ["nginx", "-g", "daemon off;"]
|