Skip to content

Commit

Permalink
Update docker to use consistent working direct; Remove src mount
Browse files Browse the repository at this point in the history
  • Loading branch information
itanex committed Feb 22, 2024
1 parent 38dde18 commit ba8b68b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ node_modules/
logs/
local-cache/
coverage/
Dockerfile
.dockerignore
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: '3.8'
services:
app:
image: stream-assist-bot
build:
context: . # Context should only operate on a File System context based on the root directory
target: dev
Expand All @@ -15,7 +16,6 @@ services:
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
volumes:
- ./:/app
- D:/DataWorkspaces/stream-assist-bot/logs:/app/logs
- D:/DataWorkspaces/stream-assist-bot/cache/:/app/local-cache/
postgres:
Expand Down
2 changes: 1 addition & 1 deletion dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ARG NODE_VERSION=18.0.0

FROM node:${NODE_VERSION}-alpine as base
WORKDIR /usr/src/app
WORKDIR /app

FROM base as dev
# install postgress client to debug db connection
Expand Down

0 comments on commit ba8b68b

Please sign in to comment.