|
|
|
@ -34,6 +34,11 @@ ENV POETRY_VIRTUALENVS_IN_PROJECT=1 \
|
|
|
|
# Copy Poetry installation from builder
|
|
|
|
# Copy Poetry installation from builder
|
|
|
|
COPY --from=builder /app/.venv /app/.venv
|
|
|
|
COPY --from=builder /app/.venv /app/.venv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Copy authentication script and entrypoint script
|
|
|
|
|
|
|
|
ENV PASSWORD="supersecret"
|
|
|
|
|
|
|
|
COPY auth.sh entrypoint.sh /app/
|
|
|
|
|
|
|
|
RUN chmod +x /app/auth.sh /app/entrypoint.sh
|
|
|
|
|
|
|
|
|
|
|
|
# Copy application files
|
|
|
|
# Copy application files
|
|
|
|
COPY . /app/
|
|
|
|
COPY . /app/
|
|
|
|
|
|
|
|
|
|
|
|
@ -46,5 +51,5 @@ EXPOSE 3000
|
|
|
|
# Set the working directory
|
|
|
|
# Set the working directory
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
|
# Run `make run` as the entry point
|
|
|
|
# Use our new entrypoint script
|
|
|
|
CMD ["make", "run"]
|
|
|
|
CMD ["/app/entrypoint.sh"]
|
|
|
|
|