Always getting 503 error after creating a commit
amirsafaricg
TRIALOP

2 years ago

Its a golang app

And this is the dockerfile

# Use the official Golang image as the base image

FROM golang:latest

# Set the working directory inside the container

WORKDIR /app

# Copy the local code to the container

COPY . .

# Download Go modules

RUN go mod download

# Build the Go application

RUN go build -o main .

# Expose port 8080 to the outside world

ARG PORT 8080

ENV PORT 8080

EXPOSE 8080

# Command to run the executable

CMD ["./main"]

1 Replies


Welcome!

Sign in to your Railway account to join the conversation.

Loading...