add seed database and entrypoint for data sync
This commit is contained in:
@@ -8,6 +8,7 @@ RUN pip install --no-cache-dir -r /app/requirements.txt
|
||||
COPY server /app/server
|
||||
COPY dist /app/dist
|
||||
COPY config.toml /app/config.toml
|
||||
COPY seed /app/seed
|
||||
|
||||
RUN mkdir -p /app/data
|
||||
|
||||
@@ -20,4 +21,8 @@ EXPOSE 37777
|
||||
|
||||
VOLUME /app/data
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["python", "-m", "server.main"]
|
||||
|
||||
Reference in New Issue
Block a user