Created
April 21, 2024 21:40
-
-
Save dheavy/cfbd26efb12eff217f4ccd0da1e46c80 to your computer and use it in GitHub Desktop.
vespa-flyio-dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use the specified Vespa image | |
FROM vespaengine/vespa:8.277.17 | |
# Set the working directory | |
WORKDIR /opt/vespa | |
# Change to vespa user before running the script | |
USER vespa | |
# Copy the custom startup script to the container and make it executable in one step | |
COPY --chmod=755 --chown=vespa:vespa start-vespa.sh /usr/local/bin/start-vespa.sh | |
# Switch to vespa user | |
USER vespa | |
# Define the volume that will be used to store data | |
VOLUME ["/opt/vespa/var"] | |
# Expose ports used by Vespa for external access | |
EXPOSE 19071 8081 | |
# Set the script as the entry point | |
ENTRYPOINT ["/usr/local/bin/start-vespa.sh", "configserver,services"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment