Skip to content

Commit

Permalink
Add docker-compose and relative context path
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejearley committed Mar 15, 2023
1 parent 324233c commit 164cb40
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions services/users/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ RUN npm install
COPY . .

# Build the TypeScript project
RUN npm run build
RUN npm run build --workspace @casimir/users

# Expose port 4000
EXPOSE 4000

WORKDIR /app/services/users/dist

# Run the app when the container launches
CMD ["node", "dist/index.js"]
CMD ["node", "index.js"]
7 changes: 7 additions & 0 deletions services/users/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '3.7'

services:
users:
build:
context: ../../
dockerfile: ./Dockerfile

0 comments on commit 164cb40

Please sign in to comment.