Skip to content

Commit

Permalink
rework dockerfile 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Sarmiento committed Sep 24, 2023
1 parent 285432a commit e7c5d63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ ENV NODE_ENV production
COPY --from=build /app/public ./public
COPY --from=build /app/package.json ./package.json
COPY --from=build /app/prisma ./prisma
COPY --from=build /app/.next ./.next
COPY --from=build /app/.next/static ./.next/static
COPY --from=build /app/.next/standalone .

EXPOSE 3000

CMD ["npm", "start"]
CMD ["node", "server.js"]

# Install additional tools (curl and grep)
RUN apk --no-cache add curl grep
Expand Down
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
images: {
minimumCacheTTL: 60 * 60 * 24 * 30, // 30 days
remotePatterns: [
Expand Down

0 comments on commit e7c5d63

Please sign in to comment.