External DB init changes
This commit is contained in:
@@ -19,11 +19,12 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
# Make entrypoint executable
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
# Make scripts executable
|
||||
RUN chmod +x /app/entrypoint.sh && \
|
||||
chmod +x /app/seed_data.py
|
||||
|
||||
# Expose port
|
||||
EXPOSE 8000
|
||||
|
||||
# Use entrypoint script
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
ENTRYPOINT ["/bin/bash", "/app/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user