Skip to content

Commit

Permalink
Updates for docker
Browse files Browse the repository at this point in the history
- Switch to CMD array format
- Switch from public/private in naming
  • Loading branch information
jrozner committed Oct 7, 2024
1 parent 29d75b5 commit 5bcf955
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.prod.api
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN apk add --no-cache ca-certificates && \
USER ashirt
WORKDIR /home/ashirt

COPY --from=build /build/api /home/ashirt/private-api
COPY --from=build /build/api /home/ashirt/api
COPY backend/migrations /migrations

CMD /home/ashirt/private-api
CMD ["/home/ashirt/api"]
4 changes: 2 additions & 2 deletions Dockerfile.prod.web
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN apk add --no-cache ca-certificates && \
USER ashirt
WORKDIR /home/ashirt

COPY --from=build /build/web /home/ashirt/public-api
COPY --from=build /build/web /home/ashirt/web
COPY backend/migrations /migrations

CMD /home/ashirt/public-api
CMD ["/home/ashirt/web"]

0 comments on commit 5bcf955

Please sign in to comment.