FROM node:14 | |
ENV TZ=Asia/Shanghai | |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | |
WORKDIR /app | |
RUN npm install express node-fetch@2 | |
COPY app.js . | |
EXPOSE 8000 | |
CMD [ "node", "app.js" ] | |
FROM node:14 | |
ENV TZ=Asia/Shanghai | |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | |
WORKDIR /app | |
RUN npm install express node-fetch@2 | |
COPY app.js . | |
EXPOSE 8000 | |
CMD [ "node", "app.js" ] | |