Compare commits

..

2 Commits

Author SHA1 Message Date
e5535f1869
Added dockerfile + compose 2023-04-19 10:22:46 +02:00
50764bca47
Bump ts 2023-04-19 10:18:56 +02:00
4 changed files with 256 additions and 312 deletions

15
Dockerfile Normal file
View File

@ -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

6
docker-compose.yml Normal file
View File

@ -0,0 +1,6 @@
version: "3"
services:
httpd:
build: .
ports:
- 8181:80

View File

@ -34,7 +34,7 @@
"svelte-preprocess": "4.10.7",
"tailwindcss": "3.1.5",
"tslib": "2.4.1",
"typescript": "5.0.0",
"typescript": "5.0.4",
"vite": "4.2.0"
},
"type": "module",

545
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff