feat: 完善智慧停车综合管理平台源码
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
FROM node:20-bookworm-slim
|
||||
|
||||
ENV TZ=Asia/Shanghai
|
||||
RUN echo $TZ > /etc/timezone && \
|
||||
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
|
||||
dpkg-reconfigure -f noninteractive tzdata
|
||||
|
||||
RUN apt-get update && apt-get install -y curl nginx libnginx-mod-rtmp && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY ./backend /usr/share/smart-parking-platform/backend
|
||||
|
||||
WORKDIR /usr/share/smart-parking-platform/backend
|
||||
|
||||
RUN npm i -g pnpm@8.15.0 && \
|
||||
pnpm install --frozen-lockfile && \
|
||||
pnpm run build && \
|
||||
mkdir -p /var/www/html/public
|
||||
|
||||
COPY ./frontend/dist /usr/share/smart-parking-platform/frontend/dist
|
||||
COPY ./backend/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
EXPOSE 80 1515
|
||||
|
||||
CMD service nginx start && pnpm run start:prod
|
||||
Reference in New Issue
Block a user