From eb4c45f4cfbf595cb31f0128cc364f89ee511f0e Mon Sep 17 00:00:00 2001 From: Caleb Braaten Date: Wed, 7 Feb 2024 06:45:18 -0800 Subject: [PATCH] Add Dockerfile for Deployment --- dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 dockerfile diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..36912a1 --- /dev/null +++ b/dockerfile @@ -0,0 +1,12 @@ +# Build frontend +FROM oven/bun:1.0.25-alpine as frontend + +WORKDIR /app/ +COPY ./ ./ + +# Expose port +EXPOSE 8080 + +# Start the app +ENV NODE_ENV=production +CMD [ "bun", "run", "./index.js" ]