FROM ubuntu:25.10

RUN apt-get clean && apt-get update
RUN apt-get install -y curl golang gcc libc6-dev
RUN curl -fsSL https://get.pulumi.com | sh -s -- --install-root / --no-edit-path
RUN pulumi version

# Set the working directory inside the container
WORKDIR /root/

# Copy the built Go binary from the build stage
COPY zrok-orchestration .
COPY templates ./templates/

# Expose the port on which your application will run (optional)
EXPOSE 8080

# Command to run the Go application
CMD ["./zrok-orchestration"]