Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM golang:1.7.1-onbuild
MAINTAINER Jimmy Mesta "[email protected]"

RUN git clone https://github.com/rawdigits/go-flashpaper

WORKDIR go-flashpaper
RUN go build

RUN openssl req \
-new \
-newkey rsa:4096 \
-days 365 \
-nodes \
-x509 \
-subj "/C=US/ST=Denial/L=DockerLand/O=Dis/CN=www.flashpaper.com" \
-keyout /go/src/app/go-flashpaper/server.key \
-out /go/src/app/go-flashpaper/server.crt

EXPOSE 8443

ENTRYPOINT ["./go-flashpaper"]