-
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.
Merge pull request #44 from weiwang0305/docker
Docker compose working
- Loading branch information
Showing
17 changed files
with
301 additions
and
197 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,31 @@ | ||
# Base stage with common setup | ||
FROM node:18 as base | ||
WORKDIR /client | ||
COPY package*.json ./ | ||
RUN npm install | ||
EXPOSE 3000 | ||
|
||
# Builder stage for building the application | ||
FROM base as builder | ||
WORKDIR /client | ||
COPY . . | ||
RUN npm run build | ||
|
||
# Production stage | ||
FROM base as production | ||
WORKDIR /client | ||
ENV NODE_ENV=production | ||
RUN npm ci | ||
|
||
COPY --from=builder /client/.next ./.next | ||
COPY --from=builder /client/node_modules ./node_modules | ||
COPY --from=builder /client/package.json ./package.json | ||
COPY --from=builder /client/public ./public | ||
CMD npm start | ||
|
||
#Development stage | ||
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { FormWrapper } from "@/components/form-wrapper"; | ||
import { FormWrapper } from '@/components/form-wrapper'; | ||
|
||
const LoginPage = () => { | ||
return <FormWrapper formType="login" />; | ||
return <FormWrapper formType='login' />; | ||
}; | ||
export default LoginPage; |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { MainFeed } from "@/components/main-feed"; | ||
import { MainFeed } from '@/components/main-feed'; | ||
|
||
export default function Explore() { | ||
return ( | ||
<div className="w-full flex flex-col"> | ||
<MainFeed type="explore" id="" /> | ||
<div className='w-full flex flex-col'> | ||
<MainFeed type='explore' /> | ||
</div> | ||
); | ||
} |
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
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
Oops, something went wrong.