Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
barrfalk committed Mar 28, 2024
1 parent bbad48f commit f1e0874
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# RedHat UBI 8 with nodejs 14
# RedHat UBI 8 with nodejs 16
FROM registry.access.redhat.com/ubi8/ubi as builder
RUN dnf module install -y nodejs:14

# Enable the Node.js 16 module and install it
RUN dnf module enable -y nodejs:16 && dnf install -y nodejs

# Install packages, build and keep only prod packages
WORKDIR /app
Expand Down Expand Up @@ -28,10 +30,10 @@ COPY --from=builder /usr/lib64/libbrotlicommon.so.1 /usr/lib64/
# Copy over app
WORKDIR /app
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/dist ./dist

# Expose port - mostly a convention, for readability
EXPOSE 3000

# Start up command
ENTRYPOINT ["node", "dist/src/main"]
ENTRYPOINT ["node", "dist/src/main"]

0 comments on commit f1e0874

Please sign in to comment.