Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

chore: update dev container to use different base #504

Merged
merged 1 commit into from
Jan 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Capi",
"build": {
"dockerfile": "../Dockerfile",
"target": "dev"
"target": "vscode"
},
"settings": {
"files.watcherExclude": {
Expand Down
23 changes: 13 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
ARG DENO_VERSION=1.29.1

FROM denoland/deno:${DENO_VERSION} as vscode
ARG VARIANT=bullseye
FROM --platform=linux/amd64 mcr.microsoft.com/devcontainers/base:0-${VARIANT} as vscode

ARG DENO_VERSION=1.29.2
ARG POLKADOT_VERSION=v0.9.36
ARG POLKADOT_PARACHAIN_VERSION=v0.9.320
ARG ZOMBIENET_VERSION=v1.3.18

ENV DENO_INSTALL=/deno
ENV DENO_INSTALL_ROOT=/usr/local

RUN mkdir -p ${DENO_INSTALL} \
&& curl -fsSL https://deno.land/x/install/install.sh | sh -s v${DENO_VERSION} \
&& chown -R vscode /deno

ENV PATH=${DENO_INSTALL}/bin:${PATH} \
DENO_DIR=/home/vscode/.cache/deno

RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y unzip curl git procps \
Expand All @@ -23,14 +34,6 @@ RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*

FROM vscode as dev
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y zsh \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*

FROM vscode as gitpod

# Gitpod creates a gitpod user to run without privileges
Expand Down