Files
huike-front/container/Dockerfile
T
weli a661e439a0 chore: initialize frontend repo with teaching terminology updates
Add the current frontend codebase with a baseline .gitignore and update piano-specific UI terms to teaching-oriented terms for the current product context.

Made-with: Cursor
2026-04-23 16:37:14 +08:00

21 lines
533 B
Docker

# build
FROM node:12-alpine
COPY . /root/website
WORKDIR /root/website
RUN yarn && yarn run build
# serve
FROM nginx:1.19.6-alpine
# setup timezone
RUN apk update && apk add tzdata sed bash
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' > /etc/timezone
RUN mkdir -p /root/logs /run/nginx/
# copy scripts
COPY container/*.sh /root/
RUN ls /root
COPY container/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=0 /root/website/dist /home/nginx/website
RUN /root/setup.sh
ENTRYPOINT /root/init.sh