Skip to content

Commit

Permalink
Remove nginx (#7)
Browse files Browse the repository at this point in the history
* Remove nginx

* Remove nginx
  • Loading branch information
vafeini authored Sep 17, 2024
1 parent 91f046c commit 313eb35
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 53 deletions.
16 changes: 1 addition & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,11 @@ RUN npm run build
FROM node:20.15.1-alpine
WORKDIR /app

# Install Nginx
RUN apk update && apk add nginx

# Copy the built Next.js app and dependencies
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/public ./public
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/node_modules ./node_modules

# Copy Nginx configuration file
COPY nginx.conf /etc/nginx/nginx.conf

# Copy the startup script
COPY start.sh /start.sh

RUN chmod +x /start.sh

# Expose port 80 for Nginx
EXPOSE 80

# Start the Next.js app and Nginx
CMD ["/start.sh"]
CMD ["npm", "start"]
30 changes: 0 additions & 30 deletions nginx.conf

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"start": "next start -p 3000",
"lint": "next lint",
"prisma:push": "npx prisma db push",
"prisma:deploy": "npx prisma migrate deploy",
Expand Down
7 changes: 0 additions & 7 deletions start.sh

This file was deleted.

0 comments on commit 313eb35

Please sign in to comment.