mirror of
https://github.com/chatopera/cosin.git
synced 2025-06-16 18:30:03 +08:00
15 lines
335 B
Docker
15 lines
335 B
Docker
FROM node:carbon-alpine
|
|
|
|
RUN apk add --no-cache tzdata && \
|
|
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
|
echo "Asia/Shanghai" > /etc/timezone
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY package.json /usr/src/app/
|
|
RUN npm install && npm cache clean --force
|
|
COPY . /usr/src/app
|
|
|
|
CMD [ "npm", "start" ]
|