Browse Source

refactor: use ubuntu image for development docker image

Nicolas Meienberger 2 năm trước cách đây
mục cha
commit
aa7ad1e645
1 tập tin đã thay đổi với 15 bổ sung2 xóa
  1. 15 2
      Dockerfile.dev

+ 15 - 2
Dockerfile.dev

@@ -1,9 +1,22 @@
-FROM alpine:3.16.0 as app
+FROM ubuntu:22.04
 
 WORKDIR /
 
+RUN apt-get update 
 # Install docker
-RUN apk --no-cache add docker-compose nodejs npm bash g++ make git
+RUN apt-get install -y ca-certificates curl gnupg lsb-release
+RUN mkdir -p /etc/apt/keyrings
+RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
+RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list >/dev/null
+RUN apt-get update
+RUN apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
+
+# Install node
+RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
+RUN apt-get install -y nodejs
+
+# Install dependencies
+RUN apt-get install -y bash g++ make git 
 
 RUN npm install node-gyp -g