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