-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docker-compose support #82
Conversation
目前 playground 依赖的 next框架不太熟悉 |
I had a brief discussion with the other engineers yesterday. We believe that most web developers should already be familiar with how However, @Lensual, your point is still valid for developers who aren’t as familiar with web development tech stack . I’ll mark the issue with the question label and see what the other engineers have to say about it. |
Something worth mentioning: we are at the AdventureX 2024 Hangzhou Hackathon. It’s clear that many developers aren’t familiar with the challenges of using Node.js and nvm, especially when dealing with AI, where Python and its environment are predominant. This makes me think that having a docker-compose file is the right approach. It solves a lot of pain when getting the entire framework up and running. |
@Lensual 1.playground/.env.example 后续这个会移除 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use the following code:
FROM node:20-alpine AS base
FROM base AS builder
WORKDIR /app
COPY . .
RUN npm i && \
npm run build
FROM base AS runner
WORKDIR /app
ENV NODE_ENV production
RUN mkdir .next
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
EXPOSE 3000
CMD HOSTNAME="0.0.0.0" node server.js
@Lensual We have concluded that having |
PR: #123 |
#81