summaryrefslogtreecommitdiffstats
path: root/Containerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Containerfile')
-rw-r--r--Containerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Containerfile b/Containerfile
new file mode 100644
index 0000000..c7ee294
--- /dev/null
+++ b/Containerfile
@@ -0,0 +1,18 @@
+# build stage
+FROM node:19-slim as build
+WORKDIR /app
+COPY package*.json ./
+RUN npm install
+COPY . .
+RUN npm run build
+
+# production build stage
+FROM node:19-slim as production
+WORKDIR /app
+COPY --from=build /app/package*.json ./
+RUN npm install --omit=dev
+COPY --from=build /app/dist ./dist
+COPY --from=build /app/assets ./assets
+EXPOSE 8080
+VOLUME /static
+CMD ["npm", "start"] \ No newline at end of file