diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..949f06a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM registry.odit.services/hub/library/node:19.9.0-alpine3.16 AS build +ARG NPM_REGISTRY_URL=registry.npmjs.org +WORKDIR /app + +COPY package.json *.config.cjs *.config.js *.config.ts tsconfig.json .npmrc ./ +RUN npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@8 +RUN pnpm i + +COPY src ./src +COPY static ./static +RUN pnpm build + +# final image +FROM registry.odit.services/library/nginx-brotli:3.15 as final +COPY --from=build /app/build /usr/share/nginx/html \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c7d7182 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,6 @@ +version: "3" +services: + httpd: + build: . + ports: + - 8181:80