mirror of
https://gitee.com/kennylee/docker.git
synced 2024-12-02 11:58:15 +08:00
17 lines
285 B
Docker
Executable File
17 lines
285 B
Docker
Executable File
FROM registry.cn-hangzhou.aliyuncs.com/kennylee/node:alpine
|
|
|
|
MAINTAINER kennylee26 <kennylee26@gmail.com>
|
|
|
|
RUN mkdir /src
|
|
RUN cnpm install express-generator nodemon -g
|
|
|
|
WORKDIR /src
|
|
|
|
COPY app/package.json /src/package.json
|
|
|
|
RUN cnpm install
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["nodemon","app/bin/www"]
|