diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e765732 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM node:alpine as Build +ENV NODE_ENV=production +WORKDIR /app + +COPY [ "package-lock.json", "package.json", "index.ts", "tsconfig.json", "./" ] +COPY server ./server + +RUN npm ci --omit=dev + +RUN npm run build +CMD ["npm","run","start"] diff --git a/dockerbuild.sh b/dockerbuild.sh new file mode 100755 index 0000000..c6ceae3 --- /dev/null +++ b/dockerbuild.sh @@ -0,0 +1 @@ +docker build --tag node-jellyfin-role-bot:latest .