Should be able to deploy

This commit is contained in:
cdricms
2025-01-18 21:13:03 +01:00
parent eb9883a1c3
commit 2046a32202
15 changed files with 248 additions and 51 deletions

25
frontend/Dockerfile.old Normal file
View 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"]