-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
27 lines (21 loc) · 878 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Start from a Debian image with the latest version of Go installed
# and a workspace (GOPATH) configured at /go.
FROM golang
# Copy the local package files to the container's workspace.
ADD . /go/src/github.com/atla/lotd
ADD ./game /go/src/github.com/atla/lotd/game
ADD ./login /go/src/github.com/atla/lotd/login
ADD ./tcp /go/src/github.com/atla/lotd/tcp
ADD ./users /go/src/github.com/atla/lotd/users
ADD ./ws /go/src/github.com/atla/lotd/ws
COPY ./public /go/src/github.com/atla/lotd/public
# Build the lotd command inside the container.
# (You may fetch or manage dependencies here,
# either manually or with a tool like "godep".)
RUN go get github.com/gorilla/websocket
RUN go install github.com/atla/lotd
# Run the outyet command by default when the container starts.
ENTRYPOINT /go/bin/lotd
# Document that the service listens on port 8080.
EXPOSE 8000
EXPOSE 8023