Skip to content

Commit

Permalink
Add Dockerfile and docker-compose.yml files
Browse files Browse the repository at this point in the history
It's standard practice at dxw to make applications that need to be
deployed somewhere into containers to avoid dependence on any one
deployment platform and to avoid issues around replicability.
  • Loading branch information
danlivings-dxw committed Sep 19, 2024
1 parent a084b62 commit ea35785
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:22.8.0-slim

WORKDIR /towtruck
VOLUME /data

COPY . .

RUN npm install

EXPOSE 3000
CMD [ "npm", "run", "seed", "&&", "npm", "run", "start" ]
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
towtruck:
build: .
ports:
- "3000:3000"

0 comments on commit ea35785

Please sign in to comment.