summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
authorPaul Munteanu <luth@luthcode.net>2021-05-29 21:35:39 +0300
committerPaul Munteanu <luth@luthcode.net>2021-05-29 21:35:39 +0300
commit5e7771c4ac79384515c6a3457d1f1884e8433895 (patch)
tree3474338cbbf7db0592532e3fe59f16420c71f86d /Dockerfile
parentMerge branch 'fosscord:master' into master (diff)
downloadserver-ts-5e7771c4ac79384515c6a3457d1f1884e8433895.tar.xz
Compile TS during Docker image build
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile

index 1113978f..39986e72 100644 --- a/Dockerfile +++ b/Dockerfile
@@ -1,8 +1,9 @@ FROM node:lts-alpine WORKDIR /usr/src/fosscord-api -COPY package.json . +COPY package.json . RUN npm install RUN npx patch-package COPY . . EXPOSE 3001 +RUN npm run build CMD ["npm", "start"] \ No newline at end of file