19 lines
357 B
Docker
19 lines
357 B
Docker
FROM alpine:latest
|
|
|
|
WORKDIR /root/
|
|
|
|
# Copy the compiled binary from the builder stage
|
|
COPY manage-servers .
|
|
|
|
# Copy the index.html file for the web server
|
|
COPY index.html .
|
|
|
|
# Copy the servers.json file
|
|
# COPY servers.json .
|
|
|
|
# Expose the port the web server listens on
|
|
EXPOSE 8080
|
|
|
|
# Command to run the application
|
|
ENTRYPOINT ["./manage-servers", "serve"]
|