docs: docker

This commit is contained in:
httpjamesm
2023-05-24 14:09:45 -04:00
parent a848ad2faa
commit 4b8e816afe
2 changed files with 31 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM golang:1.20-alpine
RUN apk add musl-dev
RUN apk add libc-dev
RUN apk add gcc
WORKDIR /app
COPY go.mod ./
COPY go.sum ./
RUN go mod download
COPY ./ /app
RUN go build -o /launchpad
EXPOSE 8080
CMD ["/anonymousoverflow"]
+11
View File
@@ -0,0 +1,11 @@
version: '3.5'
services:
app:
build:
context: .
network: 'host'
container_name: 'whatever-launchpad'
ports:
- '127.0.0.1:8080:8080'
restart: 'always'