-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.test
More file actions
44 lines (35 loc) · 1.47 KB
/
Dockerfile.test
File metadata and controls
44 lines (35 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright (c) 2025 CodeLibs
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Lightweight test runner - dependencies installed via volume mounts at runtime
FROM python:3.13-slim
# Build arguments for user configuration
ARG UID=1000
ARG GID=1000
# Install Node.js and system dependencies
RUN apt-get update && apt-get install -y \
curl \
git \
&& curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
# Create non-root user with configurable UID/GID
# Handle case where GID already exists (like 100 for 'users' group)
RUN groupadd -g ${GID} intaste 2>/dev/null || groupmod -n intaste $(getent group ${GID} | cut -d: -f1) && \
useradd -m -u ${UID} -g ${GID} intaste
# Install uv
RUN pip install --no-cache-dir uv
WORKDIR /workspace
# Set proper ownership for workspace
RUN chown -R intaste:intaste /workspace
USER intaste
# Dependencies will be installed via volume mounts and entrypoint script
CMD ["bash"]