Patch 0.0.2 #9

Merged
niggl merged 69 commits from dev into main 2021-02-03 17:24:35 +00:00
2 changed files with 25 additions and 0 deletions
Showing only changes of commit b9d4cc3619 - Show all commits

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
# Typescript Build
FROM node:14.15.1-alpine3.12
WORKDIR /app
COPY package.json ./
RUN npm i -g pnpm
RUN pnpm i
COPY tsconfig.json ./
COPY src ./src
RUN pnpm run build
# final image
FROM node:14.15.1-alpine3.12
COPY package.json ./
RUN npm i -g pnpm
RUN pnpm i --prod
COPY --from=0 /app/dist dist
ENTRYPOINT ["node", "dist/app.js"]

9
docker-compose.yml Normal file
View File

@ -0,0 +1,9 @@
version: "3"
services:
document_server:
build: .
ports:
- 4010:4010
environment:
APP_PORT: 4010
NODE_ENV: production