21 lines
545 B
Plaintext
21 lines
545 B
Plaintext
|
# Dockerfile
|
||
|
FROM ruby:3.2.2
|
||
|
|
||
|
# Set environment variables for IP and Port
|
||
|
ENV LISTEN_IP=0.0.0.0
|
||
|
ENV LISTEN_PORT=3080
|
||
|
ENV ORCHESTRATOR_DOMAIN=orchestrator_domain
|
||
|
ENV ORCHESTRATOR_PORT=orchestrator_port
|
||
|
|
||
|
# Set the working directory in the container
|
||
|
WORKDIR /netrave-protohandler
|
||
|
|
||
|
# Copy the current directory contents into the container at /netrave-protohandler
|
||
|
COPY . /netrave-protohandler
|
||
|
|
||
|
# Install any needed packages specified in Gemfile
|
||
|
RUN bundle install
|
||
|
|
||
|
# Run server.rb when the container launches
|
||
|
CMD ["ruby", "netrave-protohandler.rb"]
|