Skip to content

Commit

Permalink
chore: add dockerfile, remove legacy heroku buildpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Myphz committed Mar 6, 2024
1 parent d7fbd53 commit ea968c7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
3 changes: 0 additions & 3 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[build]
builder = "heroku/buildpacks:20"

[build.args]
NODE_ENV = "production"

Expand Down

0 comments on commit ea968c7

Please sign in to comment.