Tweaked Dockerfile
git-svn-id: file:///srv/svn/repo/mai/trunk@29 e410bdd4-646f-c54f-a7ce-fffcc4f439ae
This commit is contained in:
@@ -2,8 +2,7 @@ FROM golang:1.20-alpine
|
|||||||
|
|
||||||
RUN apk update && apk add git
|
RUN apk update && apk add git
|
||||||
|
|
||||||
RUN git clone https://codeberg.org/SimpleWeb/SimplyTranslate/
|
WORKDIR web/
|
||||||
WORKDIR SimplyTranslate/web/
|
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
RUN go build -o simplytranslate
|
RUN go build -o simplytranslate
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ func main() {
|
|||||||
|
|
||||||
address := os.Getenv("ADDRESS")
|
address := os.Getenv("ADDRESS")
|
||||||
if address == "" {
|
if address == "" {
|
||||||
address = ":3000"
|
address = ":5000"
|
||||||
}
|
}
|
||||||
app.Listen(address)
|
app.Listen(address)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user