added poseidon with aws to k8s changes
This commit is contained in:
28
Dockerfile
Normal file
28
Dockerfile
Normal file
@ -0,0 +1,28 @@
|
||||
# Use a Golang base image
|
||||
FROM golang:latest
|
||||
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /go/src/app
|
||||
|
||||
# Install dependencies and clone Poseidon repository
|
||||
RUN apt-get update
|
||||
# && \
|
||||
#apt-get install -y git && \
|
||||
#git clone https://github.com/openHPI/poseidon.git .
|
||||
|
||||
# Install make (required for building)
|
||||
RUN apt-get install -y make
|
||||
|
||||
COPY . .
|
||||
|
||||
# Install required project libraries
|
||||
RUN make bootstrap
|
||||
|
||||
# Build the binary
|
||||
RUN make build
|
||||
|
||||
# Expose the port on which Poseidon runs (adjust if necessary)
|
||||
EXPOSE 8080
|
||||
|
||||
# Command to run Poseidon
|
||||
CMD ["./poseidon"]
|
Reference in New Issue
Block a user