34 lines
1 KiB
Text
34 lines
1 KiB
Text
FROM ubuntu:22.04
|
|
|
|
WORKDIR /
|
|
|
|
RUN apt-get update
|
|
# Install docker
|
|
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
|
|
|
|
WORKDIR /api
|
|
COPY ./packages/system-api/package*.json /api/
|
|
RUN npm install
|
|
|
|
WORKDIR /dashboard
|
|
COPY ./packages/dashboard/package*.json /dashboard/
|
|
RUN npm install
|
|
|
|
COPY ./packages/system-api /api
|
|
COPY ./packages/dashboard /dashboard
|
|
|
|
WORKDIR /
|