mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-12-30 14:20:18 +01:00
19 lines
319 B
Text
19 lines
319 B
Text
|
FROM golang
|
||
|
MAINTAINER Remco Verhoef <remco@dutchcoders.io>
|
||
|
|
||
|
RUN mkdir -p /go/src/app
|
||
|
WORKDIR /go/src/app
|
||
|
|
||
|
# Copy the local package files to the container's workspace.
|
||
|
ADD . /go/src/app
|
||
|
|
||
|
# install dependencies
|
||
|
RUN go get ./
|
||
|
|
||
|
# build & install server
|
||
|
RUN go install .
|
||
|
|
||
|
ENTRYPOINT /go/bin/app --port 8080
|
||
|
|
||
|
EXPOSE 8080
|