Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mjknight50 committed Mar 22, 2024
1 parent df2749f commit de05e4a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules

.env

.next/
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM node:18-alpine AS build

COPY . .

EXPOSE 3000
CMD ["npm", "run", "dev"]

# Once the nextjs route errors are fixed, this kind of docker build can be used
# FROM node:18-alpine AS build

# WORKDIR /app
# COPY package*.json ./
# RUN npm ci
# COPY . .
# RUN npm run build

# FROM node:18-alpine AS runtime

# WORKDIR /app
# COPY package*.json ./
# RUN npm ci --only=production
# COPY --from=build /app/.next ./.next
# COPY --from=build /app/public ./public

# EXPOSE 3000
# USER node
# CMD ["npm", "start"]

0 comments on commit de05e4a

Please sign in to comment.