Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ FROM node:18-alpine

WORKDIR /app

COPY . .
COPY package.json ./
COPY .env.local ./.env.local
COPY package*.json ./

RUN npm install

COPY . .

COPY .env.local .env.local

CMD ["npm", "run", "docker"]

4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ services:
env_file:
- .env.local
volumes:
- ./:/app/
- ./:/app/
- /app/node_modules
tty: true
stdin_open: true

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"tsx": "tsx --env-file=.env.local",
"start": "tsx --env-file=.env.local src/run.ts",
"api": "tsx --env-file=.env.local src/api.ts",
"docker": "tsx src/run.ts",
"docker": "npx tsx src/run.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
Expand Down