Skip to content

Commit

Permalink
feat: standardize deployment using dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
barakplasma committed Jan 21, 2021
1 parent abcdadc commit 1d738bd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
node_modules/
node_modules/
*.pem
.env
.github/
.vscode/
test/
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
dokku/*
node_modules/
*.pem
.env
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM node:lts-alpine
WORKDIR /app
COPY package.json .
COPY package-lock.json .
RUN npm install --production
COPY . .
ENV PORT=8080
EXPOSE 8080
CMD [ "npm","start" ]
3 changes: 0 additions & 3 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

app = "chisoonnumber"

[build]
builtin = "node"

kill_signal = "SIGINT"
kill_timeout = 5

Expand Down

0 comments on commit 1d738bd

Please sign in to comment.