Should be able to deploy
This commit is contained in:
25
frontend/Dockerfile.old
Normal file
25
frontend/Dockerfile.old
Normal file
@@ -0,0 +1,25 @@
|
||||
# Use Deno image
|
||||
FROM node
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy project files
|
||||
COPY . .
|
||||
|
||||
ENV NODE_PATH=.
|
||||
ENV NODE_ENV=production
|
||||
RUN npm install
|
||||
|
||||
# Install Next.js dependencies
|
||||
RUN npm run build
|
||||
|
||||
# Move everything to the standalone
|
||||
RUN cp -r public .next/standalone/public
|
||||
RUN cp -r .next/static .next/standalone/.next/static
|
||||
RUN mv .next/standalone/server.js .next/standalone/server.cjs
|
||||
|
||||
RUN rm -r ./node_modules
|
||||
|
||||
# Start the Next.js app
|
||||
CMD ["node", ".next/standalone/server.cjs"]
|
||||
Reference in New Issue
Block a user