This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang | |
MAINTAINER İlker Göktuğ Öztürk <[email protected]> | |
RUN go get ./... && go install bitbucket.org/ilgooz/pdf/app | |
# Install Java. | |
RUN \ | |
apt-get update && \ | |
apt-get install -y openjdk-7-jre && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
func handler(w http.ResponseWriter, r *http.Request) { | |
fmt.Fprintf(w, "Hi there, I love %s!", r.URL.Path[1:]) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dockerfile | |
FROM crate:latest | |
ADD config.yml /crate/config/crate.yml | |
ENV MIN 10g | |
ENV MAX 10g | |
ENV CRATE_MIN_MEM 10g | |
ENV CRATE_MAX_MEM 10g |
NewerOlder