Update Dockerfile
This commit is contained in:
@@ -24,12 +24,18 @@ RUN mkdir -p /app/public
|
|||||||
COPY --from=builder /app/package.json /app/package-lock.json ./
|
COPY --from=builder /app/package.json /app/package-lock.json ./
|
||||||
COPY --from=builder /app/.next ./.next
|
COPY --from=builder /app/.next ./.next
|
||||||
COPY --from=builder /app/node_modules ./node_modules
|
COPY --from=builder /app/node_modules ./node_modules
|
||||||
|
COPY --from=builder /app/server.js ./
|
||||||
|
COPY --from=builder /app/.env.tor ./
|
||||||
|
COPY --from=builder /app/.env.backend ./
|
||||||
|
COPY --from=builder /app/public ./public
|
||||||
|
|
||||||
|
# If you have a backend folder, copy it as well
|
||||||
|
COPY --from=builder /app/backend ./backend
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENV NEXT_PUBLIC_API_URL=/api
|
ENV NEXT_PUBLIC_API_URL=/api
|
||||||
|
|
||||||
|
|
||||||
# Start Next.js server
|
# Start Next.js server
|
||||||
CMD ["npm", "run", "start:tor"]
|
CMD ["npm", "run", "start:tor"]
|
||||||
Reference in New Issue
Block a user