mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
27 lines
603 B
Docker
27 lines
603 B
Docker
FROM mcr.microsoft.com/devcontainers/base:ubuntu
|
|
|
|
USER vscode
|
|
|
|
ENV PATH="/home/vscode/.local/bin:${PATH}"
|
|
|
|
ARG PYTHON_VERSION=3.12.11
|
|
ARG NODEJS_VERSION=24
|
|
|
|
# Install and setup mise and uv
|
|
RUN curl https://mise.run | sh
|
|
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
|
|
# Activate mise
|
|
RUN echo 'eval "$(mise activate bash)"' >> ~/.bashrc
|
|
|
|
# Setup Python and Node.js
|
|
RUN mise use -g node@$NODEJS_VERSION
|
|
RUN uv python install $PYTHON_VERSION
|
|
|
|
# Create and activate venv
|
|
RUN uv venv --clear ~/.venv/maa
|
|
RUN echo "source ~/.venv/maa/bin/activate" >> ~/.bashrc
|
|
|
|
# Install tools
|
|
RUN uv tool install prek
|