Added dockerfile + compose
This commit is contained in:
parent
50764bca47
commit
e5535f1869
15
Dockerfile
Normal file
15
Dockerfile
Normal 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
6
docker-compose.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
httpd:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- 8181:80
|
Loading…
x
Reference in New Issue
Block a user