-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (29 loc) · 685 Bytes
/
Dockerfile
File metadata and controls
39 lines (29 loc) · 685 Bytes
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
FROM ruby:4.0.1-alpine3.23
SHELL ["/bin/sh", "-o", "pipefail", "-c"]
RUN apk add --no-cache \
bash \
build-base \
curl \
git \
libxml2-dev \
libxslt-dev \
nodejs \
npm \
openssl-dev \
python3 \
yaml-dev \
tzdata
RUN if ! command -v corepack >/dev/null 2>&1; then npm install -g corepack; fi \
&& corepack enable \
&& corepack prepare "pnpm@latest" --activate
ARG USER=vscode
ARG UID=1000
ARG GID=1000
RUN addgroup -g "$GID" "$USER" \
&& adduser -D -G "$USER" -u "$UID" "$USER"
WORKDIR /workspace
RUN chown -R "$USER":"$USER" /workspace
ENV BUNDLE_PATH=/usr/local/bundle
USER "$USER"
EXPOSE 4000
CMD ["sleep", "infinity"]