| 1234567891011121314151617181920212223242526272829303132333435 |
- # Copyright 2020 Docker, Inc.
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- # http://www.apache.org/licenses/LICENSE-2.0
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- # BUILD
- FROM ubuntu:latest
- # Update and upgrade repo
- RUN apt-get update -y -q && apt-get upgrade -y -q
- # Install tools we might need
- RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y -q curl build-essential ca-certificates git
- # Download Go 1.2.2 and install it to /usr/local/go
- RUN curl -s https://storage.googleapis.com/golang/go1.2.2.linux-amd64.tar.gz| tar -v -C /usr/local -xz
- # Let's people find our Go binaries
- ENV PATH $PATH:/usr/local/go/bin
- COPY dispatcher.go .
- RUN go build dispatcher.go
- EXPOSE 80
- CMD ["/dispatcher"]
- COPY static /static/
|