Skip to content

Commit

Permalink
frozen for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
darjeeling committed Jul 14, 2024
1 parent 0d8462c commit d3a6c41
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
13 changes: 13 additions & 0 deletions DockerfileProd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM --platform=linux/amd64 node:lts
EXPOSE 3000

WORKDIR /app
COPY . .

ENV build_env=prod

RUN npm install
COPY ./.env.prod ./.env
RUN ./node_modules/.bin/next build

CMD ["sh", "-c", "npm start"]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,13 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

## Docker Image Frozen for Prod

I made builded docker file for prod

```
docker build -f DockerfileProd -t {AWS_ID}.dkr.ecr.ap-northeast-2.amazonaws.com/{CLUSTER_NAME}/{APP_ID}:2023_frontend_prod .
```


0 comments on commit d3a6c41

Please sign in to comment.