Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh committed Jan 2, 2023
1 parent df9e49a commit e9898ce
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions generate/templates/Dockerfile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ ARG BUILDPLATFORM
RUN echo "I am running on `$BUILDPLATFORM, building for `$TARGETPLATFORM"
RUN --mount=type=secret,id=GITHUB_TOKEN \
DEPS='alpine-sdk bash libstdc++ libc6-compat python3' \
DEPS='alpine-sdk bash libstdc++ libc6-compat python3 pkg-config' \
&& apk add --no-cache `$DEPS \
&& apk add --no-cache npm nodejs \
&& npm config set python python3 \
&& export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/ \
# && export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/ \
&& GITHUB_TOKEN=`$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@$( $VARIANT['_metadata']['package_version'] ) --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=`$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
Expand Down
4 changes: 2 additions & 2 deletions variants/v4.6.1-alpine-3.15/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN --mount=type=secret,id=GITHUB_TOKEN \
DEPS='alpine-sdk bash libstdc++ libc6-compat python3' \
DEPS='alpine-sdk bash libstdc++ libc6-compat python3 pkg-config' \
&& apk add --no-cache $DEPS \
&& apk add --no-cache npm nodejs \
&& npm config set python python3 \
&& export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/ \
# && export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/ \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.6.1 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
Expand Down
4 changes: 2 additions & 2 deletions variants/v4.7.1-alpine-3.15/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN --mount=type=secret,id=GITHUB_TOKEN \
DEPS='alpine-sdk bash libstdc++ libc6-compat python3' \
DEPS='alpine-sdk bash libstdc++ libc6-compat python3 pkg-config' \
&& apk add --no-cache $DEPS \
&& apk add --no-cache npm nodejs \
&& npm config set python python3 \
&& export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/ \
# && export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/ \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.7.1 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
Expand Down
4 changes: 2 additions & 2 deletions variants/v4.8.3-alpine-3.15/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN --mount=type=secret,id=GITHUB_TOKEN \
DEPS='alpine-sdk bash libstdc++ libc6-compat python3' \
DEPS='alpine-sdk bash libstdc++ libc6-compat python3 pkg-config' \
&& apk add --no-cache $DEPS \
&& apk add --no-cache npm nodejs \
&& npm config set python python3 \
&& export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/ \
# && export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/ \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.8.3 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
Expand Down
4 changes: 2 additions & 2 deletions variants/v4.9.1-alpine-3.15/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN --mount=type=secret,id=GITHUB_TOKEN \
DEPS='alpine-sdk bash libstdc++ libc6-compat python3' \
DEPS='alpine-sdk bash libstdc++ libc6-compat python3 pkg-config' \
&& apk add --no-cache $DEPS \
&& apk add --no-cache npm nodejs \
&& npm config set python python3 \
&& export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/ \
# && export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/ \
&& GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --global code-server@4.9.1 --unsafe-perm \
# Fix missing dependencies. See: https://github.com/coder/code-server/issues/5530
&& cd /usr/local/lib/node_modules/code-server/lib/vscode && GITHUB_TOKEN=$( cat /run/secrets/GITHUB_TOKEN ) npm install --legacy-peer-deps \
Expand Down

0 comments on commit e9898ce

Please sign in to comment.