-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
53 lines (41 loc) · 2.6 KB
/
Dockerfile
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
45
46
47
48
49
50
51
52
53
FROM --platform=$BUILDPLATFORM node:18.16.0-alpine3.18 AS client-builder
WORKDIR /app/client
# cache packages in layer
COPY client/package.json /app/client/package.json
COPY client/package-lock.json /app/client/package-lock.json
RUN --mount=type=cache,target=/usr/src/app/.npm \
npm set cache /usr/src/app/.npm && \
npm ci
# install
COPY client /app/client
RUN npm run build
FROM alpine:3.20
ARG DAYTONA_VERSION
RUN apk update && apk add --no-cache curl openssh-client bash && \
echo "daytona:x:1000:1000:Daytona:/home/daytona:/bin/bash" >> /etc/passwd && \
echo "daytona:x:1000:" >> /etc/group && \
mkdir -p /home/daytona && chown 1000:1000 /home/daytona
COPY install.sh /install.sh
RUN chmod +x /install.sh && DAYTONA_VERSION=${DAYTONA_VERSION} /install.sh && rm /install.sh
COPY get-config.sh /darwin/get-config.sh
COPY get-config.sh /linux/get-config.sh
COPY get-config.cmd /windows/get-config.cmd
RUN chmod +x /darwin/get-config.sh && chmod +x /linux/get-config.sh && chmod +x /windows/get-config.cmd
LABEL org.opencontainers.image.title="Daytona"
LABEL org.opencontainers.image.description="Docker Extension for using Daytona."
LABEL org.opencontainers.image.vendor="Daytona"
LABEL com.docker.desktop.extension.api.version=">= 0.2.3"
LABEL com.docker.extension.categories="utility-tools"
LABEL com.docker.extension.screenshots="[{\"alt\":\"Workspace list\", \"url\":\"https://raw.githubusercontent.com/daytonaio/daytona-docker-extension/main/docs/images/workspace_list.png\"},\
{\"alt\":\"Create workspace\", \"url\":\"https://raw.githubusercontent.com/daytonaio/daytona-docker-extension/main/docs/images/create_workspace.png\"},\
{\"alt\":\"IDE logs\", \"url\":\"https://raw.githubusercontent.com/daytonaio/daytona-docker-extension/main/docs/images/ide_logs.png\"}]"
LABEL com.docker.extension.publisher-url="https://github.com/daytonaio/daytona-docker-extension"
LABEL com.docker.extension.changelog="https://github.com/daytonaio/daytona/releases/tag/v${DAYTONA_VERSION}"
LABEL com.docker.extension.additional-urls="[{\"title\":\"Documentation\",\"url\":\"https://docs.daytona.io\"},\
{\"title\":\"License\",\"url\":\"https://github.com/daytonaio/daytona-docker-extension/blob/main/LICENSE\"}]"
LABEL com.docker.extension.detailed-description="Docker Extension for using Daytona."
LABEL com.docker.desktop.extension.icon="https://www.daytona.io/favicon.ico"
LABEL com.docker.extension.detailed-description="Daytona is a self-hosted and secure open source development environment manager."
COPY daytona.svg metadata.json /
COPY --from=client-builder /app/client/dist /client
ENTRYPOINT ["sleep", "infinity"]