Dockerfile
简单Dockerfile 实例
FROM node:9.1.0-alpine
WORKDIR /src
COPY express-docker-test /src
EXPOSE 3000
RUN cd /src && npm install
CMD npm start
"cd","/src/express-docker-test" ]
"npm","install" ]
"npm","start" ]
FROM golang:1.9.2-alpine3.6
MAINTAINER "playtomandjerry"<[email protected]>
EXPOSE 9090
RUN mkdir /app
ADD src /app/src
ADD pkg /app
ADD test /app
WORKDIR /app
EXPOSE 9090
RUN cd /src
"go","run" "main.go"]
CMD go run main.go
FROM java
MAINTAINER "playtomandjerry"<[email protected]>
ADD demo-0.0.1-SNAPSHOT.jar app.jar
EXPOSE 8081
CMD java -jar app.jar