summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2023-05-12 16:54:06 +0100
committerRaphael Kabo <raphaelkabo@hey.com>2023-05-12 16:54:06 +0100
commit50688f573054f60aa7594672615f11713173c147 (patch)
treec66bdf874a210997cd1d84942101773ba0175b20 /Dockerfile
parentbcf967eb359f243487b5bd2eca418387a65c4e22 (diff)
Update docker to support typescript + pnpm
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index 5bec270..a11e337 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,8 +1,10 @@
-FROM node:16-alpine
+FROM node:18-alpine
WORKDIR /app
RUN apk add --no-cache python3 build-base
-ADD package.json package-lock.json /app/
-RUN npm install
+ADD package.json pnpm-lock.yaml /app/
+RUN npm install -g pnpm
+RUN pnpm install
COPY . /app/
-RUN cp config/api-example.js config/api.js && cp config/domain-example.js config/domain.js && cp config/database-docker.js config/database.js
-CMD npm start
+RUN cp src/config/api-example.js src/config/api.js && cp src/config/domain-example.js src/config/domain.js && cp src/config/database-docker.js src/config/database.js
+CMD pnpm run build
+CMD pnpm run start