feat(project): init
This commit is contained in:
16
docker/node.dockerfile
Normal file
16
docker/node.dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# build first
|
||||
FROM harbor.cowarobot.cn/docker.io/node:20-alpine
|
||||
RUN mkdir -p /app
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV production
|
||||
COPY ./.next/standalone ./standalone
|
||||
COPY ./public /app/standalone/public
|
||||
COPY ./.next/static /app/standalone/.next/static
|
||||
|
||||
ENV PORT 5521
|
||||
|
||||
ENV NEXT_TELEMETRY_DISABLED 1
|
||||
|
||||
EXPOSE 5521
|
||||
|
||||
CMD ["node", "./standalone/server.js"]
|
||||
Reference in New Issue
Block a user