зеркало из https://github.com/Azure/draft-classic.git
Merge pull request #800 from bjornmagnusson/packs-no-onbuild
Use non-onbuild base images in packs
This commit is contained in:
Коммит
9f845ac95c
|
@ -1,4 +1,4 @@
|
|||
FROM clojure:onbuild as BUILD
|
||||
FROM clojure as BUILD
|
||||
COPY . /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
RUN lein ring uberjar
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
FROM golang:onbuild
|
||||
FROM golang
|
||||
ENV PORT 8080
|
||||
EXPOSE 8080
|
||||
|
||||
WORKDIR /go/src/app
|
||||
COPY . .
|
||||
|
||||
RUN go get -d -v ./...
|
||||
RUN go install -v ./...
|
||||
|
||||
CMD ["app"]
|
|
@ -1,5 +1,11 @@
|
|||
FROM node:8-onbuild
|
||||
FROM node:8
|
||||
ENV PORT 8080
|
||||
EXPOSE 8080
|
||||
|
||||
RUN mkdir -p /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
COPY package.json .
|
||||
RUN npm install
|
||||
COPY . .
|
||||
|
||||
CMD ["npm", "start"]
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
FROM python:onbuild
|
||||
FROM python
|
||||
ENV PORT 8080
|
||||
EXPOSE 8080
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
ENTRYPOINT ["python"]
|
||||
CMD ["app.py"]
|
||||
CMD ["app.py"]
|
|
@ -1,4 +1,12 @@
|
|||
FROM ruby:onbuild
|
||||
FROM ruby
|
||||
ENV PORT 3000
|
||||
EXPOSE 3000
|
||||
RUN bundle config --global frozen 1
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY Gemfile Gemfile.lock ./
|
||||
RUN bundle install
|
||||
|
||||
COPY . .
|
||||
CMD ["ruby", "app.rb"]
|
||||
|
|
Загрузка…
Ссылка в новой задаче