From ea968c7f4146105ee77ab32e58275c7796128d82 Mon Sep 17 00:00:00 2001 From: Myphz Date: Wed, 6 Mar 2024 13:42:04 +0100 Subject: [PATCH] chore: add dockerfile, remove legacy heroku buildpack --- Dockerfile | 14 ++++++++++++++ fly.toml | 3 --- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..20209ba --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM node:16 +WORKDIR /usr/src/app + +ENV NODE_ENV production + +COPY package*.json ./ +RUN npm ci --include=dev + +COPY . . +RUN npm run build + +EXPOSE 3000 + +CMD [ "npm", "run", "start" ] \ No newline at end of file diff --git a/fly.toml b/fly.toml index 0c7f870..e4ab907 100644 --- a/fly.toml +++ b/fly.toml @@ -7,9 +7,6 @@ kill_signal = "SIGINT" kill_timeout = 5 processes = [] -[build] - builder = "heroku/buildpacks:20" - [build.args] NODE_ENV = "production"