Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ternaus committed Nov 15, 2024
1 parent f088564 commit 04c4ca2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions website/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,12 @@ RUN yarn install
# Copy the rest of the application
COPY --chown=node:node website .

# Verify next is installed
RUN ls -la node_modules/.bin/next
RUN which next

# Expose port
EXPOSE 3000

# Set the command
CMD if [ "$NODE_ENV" = "production" ]; then \
yarn build; \
yarn dlx next build; \
else \
yarn dev; \
yarn dlx next dev; \
fi

0 comments on commit 04c4ca2

Please sign in to comment.