Skip to content
Merged
Changes from all commits
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
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,25 @@ RUN \
--gid $HCF_API_GID \
--groups audio,video \
--shell /usr/sbin/nologin \
hcf_api

USER hcf_api
hcf_api && \
mkdir -p /home/hcf_api/app && \
chown hcf_api:hcf_api /home/hcf_api/app

WORKDIR /home/hcf_api/app

COPY --chown=hcf_api:hcf_api package.json yarn.lock ./

USER hcf_api

RUN yarn install --frozen-lockfile --production && \
yarn cache clean --force

COPY --from=build --chown=hcf_api:hcf_api /usr/src/app/dist ./dist
COPY --chown=hcf_api:hcf_api ./public ./public

USER root
COPY --from=build --chmod=664 /usr/src/app/dist/reports/assets/fonts/*.ttf /usr/share/fonts/truetype/
USER hcf_api

EXPOSE $PORT

Expand Down
Loading