๐Ÿ“ฆ jordojordo / thothscript

๐Ÿ“„ Containerfile ยท 15 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15FROM node:22-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN yarn
COPY ./ .
RUN yarn build

FROM docker.io/nginx:latest as production-stage
RUN mkdir /app
COPY --from=build-stage /app/dist /app
COPY nginx.conf.template /etc/nginx/nginx.conf.template
COPY scripts/start.sh /start.sh

RUN chmod +x /start.sh
ENTRYPOINT ["/start.sh"]