-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f35822b
commit bfbcbf5
Showing
10 changed files
with
10,273 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM node:21 as base | ||
# RUN apk add --no-cache g++ make py3-pip libc6-compat | ||
WORKDIR /app | ||
COPY package*.json ./ | ||
RUN npm install | ||
EXPOSE 3000 | ||
|
||
FROM base as builder | ||
WORKDIR /app | ||
COPY . . | ||
RUN npm run build | ||
|
||
|
||
FROM base as production | ||
WORKDIR /app | ||
|
||
ENV NODE_ENV=production | ||
RUN npm install | ||
|
||
COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next | ||
COPY --from=builder /app/node_modules ./node_modules | ||
COPY --from=builder /app/package.json ./package.json | ||
COPY --from=builder /app/public ./public | ||
|
||
CMD npm start | ||
|
||
FROM base as dev | ||
ENV NODE_ENV=development | ||
RUN npm install | ||
COPY . . | ||
CMD npm run dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM node:21 as base | ||
# RUN apk add --no-cache g++ make py3-pip libc6-compat | ||
WORKDIR /app | ||
COPY package*.json ./ | ||
RUN npm install | ||
EXPOSE 3000 | ||
|
||
FROM base as builder | ||
WORKDIR /app | ||
COPY . . | ||
RUN npm run build | ||
|
||
|
||
FROM base as production | ||
WORKDIR /app | ||
|
||
ENV NODE_ENV=production | ||
RUN npm ci | ||
|
||
COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next | ||
COPY --from=builder /app/node_modules ./node_modules | ||
COPY --from=builder /app/package.json ./package.json | ||
COPY --from=builder /app/public ./public | ||
|
||
CMD npm start | ||
|
||
FROM base as dev | ||
ENV NODE_ENV=development | ||
RUN npm install | ||
COPY . . | ||
CMD npm run dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"AWSEBDockerrunVersion": "1", | ||
"Authentication": { | ||
"bucket": "docker-login-bucket-seistart", | ||
"key": "dockercfg" | ||
}, | ||
"Image": { | ||
"Name": "siddharth9903/seistart:latest", | ||
"Update": "true" | ||
}, | ||
"Ports": [ | ||
{ | ||
"ContainerPort": "3000" | ||
} | ||
], | ||
"Logging": "/var/log/nginx" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: "1" | ||
services: | ||
app: | ||
image: seistart | ||
build: | ||
context: ./ | ||
target: dev | ||
dockerfile: Dockerfile.dev | ||
ports: | ||
- "3000:3000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: "1" | ||
services: | ||
app: | ||
image: seistart | ||
build: | ||
context: ./ | ||
target: production | ||
dockerfile: Dockerfile.prod | ||
ports: | ||
- "3000:3000" |
Oops, something went wrong.