Port binding did not work

dhannyraymondTRIAL

5 months ago

i'm trying to deploy golang with revel framework, deployed with Dockerfile
here's my Dockerfile content

Use Go 1.23 as the base image for the builder stage

FROM golang:1.23-alpine AS builder

Add required packages

RUN apk add --update git curl bash

RUN go install github.com/revel/cmd/revel@latest

WORKDIR /app

COPY go.mod go.sum ./
RUN go mod tidy

ENV CGO_ENABLED 0

ADD . .

Set environment variables for production

ENV REVEL_MODE=prod

Expose the port used by Revel

EXPOSE 8080

ENTRYPOINT revel run -m prod -p 8080

but i got error nil pointer, i already set this on app.conf
http.addr=0.0.0.0
http.port=${PORT}
http.proxy=false

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

0 Replies