Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multi-stage builds for Management & Treatment Services Dockerfile #66

Merged
merged 20 commits into from
Mar 14, 2023
Merged
Changes from 1 commit
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
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM alpine:latest

# Install bash
USER root
RUN apk add --no-cache bash
RUN apk add --no-cache bash libc6-compat

ARG API_BIN_NAME=xp-management
ARG XP_UI_DIST_PATH=ui/build
Expand All @@ -21,6 +21,8 @@ RUN addgroup -S ${XP_USER_GROUP} \

COPY --chown=${XP_USER}:${XP_USER_GROUP} management-service/bin/* /app/
COPY --chown=${XP_USER}:${XP_USER_GROUP} management-service/database /app/database/
# read+write access for owner/group but no write access for others
RUN chmod -R 775 /app/xp-management
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Not sure if the chmod has some unintended impact. Are we still able to build and deploy the internal image on top of this? Can it be tested prior to merging this?
  • Do we need a similar change for the treatment service too?


USER ${XP_USER}
WORKDIR /app
Expand Down