aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 2d65ee5d52669e09cb5cac039d5b6338fb922cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM golang:alpine
# Add tools for downloading & building
RUN apk add --update git nodejs nodejs-npm

# Copy everything across
COPY . ./

# Build the website
RUN npm install && npm run-script build

# Retrieve server dependencies
RUN go get github.com/ecc1/spi github.com/gorilla/websocket github.com/MFAshby/unicornpaint/unicorn

# Build server
RUN go build -o ./unicornpaint Server2.go

# Get rid of stuff we don't need for runtime
RUN apk del git nodejs nodejs-npm

# Run server!
CMD ./unicornpaint