From 2a7ee4d5937d484e741c296eb69f577e13610b05 Mon Sep 17 00:00:00 2001 From: Guilian Celin--Davanture Date: Wed, 10 Apr 2024 18:26:12 +0200 Subject: [PATCH] chore: dockerfile --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1b9b540 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +# Use the oven/bun:1 base image +FROM oven/bun:1 + +# Set the working directory to /app +WORKDIR /app + +# Create a startup script +COPY static static +COPY views views + +COPY *.ts . +COPY *.json . + +RUN bun install + +# Run the startup script when the container starts +CMD ["bun", "run", "index.ts"]