Skip to content

Commit

Permalink
Building tag error (#2073)
Browse files Browse the repository at this point in the history
* Building tag error

Move gulp dependency outside of dev so able to build

* move gulp dependencies

* move gulp back and edit docker file

* refactor install line

* chown in build
  • Loading branch information
ScottDormand96 authored Nov 11, 2024
1 parent 6ddcfc6 commit 59173fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/gafl-webapp-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ WORKDIR /app
COPY packages/gafl-webapp-service/package*.json /app/
COPY packages/gafl-webapp-service/assets /app/assets
COPY packages/gafl-webapp-service/build /app/build
RUN npm install --production \
&& npm run prepare \
&& npm prune --production \
&& npm cache clean --force > /dev/null 2>&1

RUN npm install && npm run prepare

# Bundle app source
COPY packages/gafl-webapp-service/ /app
Expand All @@ -23,7 +21,9 @@ RUN rm -Rf /app/build /app/assets
####################################################################################################################################
FROM rod_licensing/base
WORKDIR /app
COPY --from=builder /app/ /app/
COPY --from=builder --chown=node:node /app/ /app/

RUN npm prune --production && npm cache clean --force > /dev/null 2>&1

# Default service port
ARG PORT=3000
Expand Down

0 comments on commit 59173fe

Please sign in to comment.