Skip to content

Commit

Permalink
Merge pull request #108 from CanDIG/fnguyen/candig-user
Browse files Browse the repository at this point in the history
DIG-1377: Be consistent in our use of candig user inside containers
  • Loading branch information
OrdiNeu committed Dec 21, 2023
2 parents a7c0663 + c8d1773 commit 312ca0b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ ENV TYK_KATSU_API_TARGET=$katsu_api_target_url

RUN apk update && apk add gettext

WORKDIR /app/candig-data-portal
ENV PATH /app/candig-data-portal/node_modules/.bin:$PATH

RUN apk add --no-cache git curl vim bash

COPY . /app/candig-data-portal
RUN addgroup -S candig && adduser -S candig -G candig

COPY --chown=candig:candig . /app/candig-data-portal

USER candig

WORKDIR /app/candig-data-portal

ENV PATH /app/candig-data-portal/node_modules/.bin:$PATH

RUN npm install

Expand Down

0 comments on commit 312ca0b

Please sign in to comment.