-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from nebula-contrib/serverless
feat: add nebulagraph-lite prebuild container
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM python:3.8-slim | ||
|
||
# Set work directory | ||
WORKDIR /app | ||
|
||
# Install curl and nebulagraph-lite | ||
RUN apt-get update && apt-get install -y curl which && \ | ||
pip install nebulagraph-lite && \ | ||
nebulagraph --container start && \ | ||
nebulagraph --container stop | ||
|
||
# Expose port 9559, 9669, 9779 for NebulaGraph | ||
EXPOSE 9559 9669 9779 | ||
|
||
# Start NebulaGraph | ||
CMD ["nebulagraph", "--container", "start"] | ||
|
||
# How to run it | ||
# docker build -t nebulagraph-lite . | ||
# docker run -p 9669:9669 nebulagraph-lite |