forked from langflow-ai/langflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update devcontainer configuration and Dockerfile (langflow-ai#…
…4298) * Add Dockerfile for devcontainer with Rust and UV setup * Update devcontainer configuration to use Dockerfile and enhance features - Switch from using a pre-built image to building from a Dockerfile. - Replace Poetry feature with Hadolint for linting Dockerfiles. - Add new VSCode extensions: Ruff, Autodocstring, Indent Rainbow, and Hadolint. - Set default terminal profile to zsh in VSCode settings. - Add a postStartCommand to initialize the environment. - Change remote user to 'vscode'. * Update test command in VSCode tasks to 'make unit_tests' * chore: remove unnecessary comment --------- Co-authored-by: italojohnny <[email protected]>
- Loading branch information
1 parent
6c3c328
commit 0fd3d93
Showing
4 changed files
with
51 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Source: https://github.com/a5chin/python-uv | ||
FROM debian:bookworm-slim AS builder | ||
|
||
ENV CARGO_HOME="/opt/.cargo" | ||
|
||
SHELL [ "/bin/bash", "-o", "pipefail", "-c" ] | ||
|
||
WORKDIR /opt | ||
|
||
# The installer requires curl (and certificates) to download the release archive | ||
# hadolint ignore=DL3008 | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends ca-certificates curl | ||
|
||
# Run uv installer | ||
RUN curl -LsSf https://astral.sh/uv/install.sh | sh | ||
|
||
|
||
FROM mcr.microsoft.com/vscode/devcontainers/base:bookworm | ||
|
||
|
||
ENV CARGO_HOME="/opt/.cargo" | ||
ENV PATH="$CARGO_HOME/bin/:$PATH" | ||
ENV PYTHONUNBUFFERED=True | ||
ENV UV_LINK_MODE=copy | ||
|
||
WORKDIR /opt | ||
|
||
COPY --from=builder --chown=vscode: $CARGO_HOME $CARGO_HOME |
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
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