Skip to content

Commit

Permalink
feat: Add separate dockerfiles for server and cli
Browse files Browse the repository at this point in the history
  • Loading branch information
akash4sh committed May 16, 2024
1 parent 48aee8b commit 4f6db11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 10 additions & 0 deletions dockerfiles/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM alpine

WORKDIR /app

COPY ./qualitytrace /app/qualitytrace

# Adding /app folder on $PATH to allow users to call qualitytrace cli on docker
ENV PATH="$PATH:/app"

ENTRYPOINT ["/app/qualitytrace"]
4 changes: 0 additions & 4 deletions Dockerfile → dockerfiles/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@ FROM alpine
WORKDIR /app

COPY ./qualitytrace-server /app/qualitytrace-server
COPY ./qualitytrace /app/qualitytrace

# COPY ./web/build ./html

# Adding /app folder on $PATH to allow users to call qualitytrace cli on docker
ENV PATH="$PATH:/app"

EXPOSE 11633/tcp

ENTRYPOINT ["/app/qualitytrace-server", "serve"]

0 comments on commit 4f6db11

Please sign in to comment.