-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
43 lines (33 loc) · 1.1 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
# KBVE Monorepo Base Dockerfile
FROM ubuntu:22.04 as kbve
# Set environment variables to non-interactive (this prevents prompts during package installation)
ENV DEBIAN_FRONTEND=noninteractive
# Update and install necessary packages
RUN apt-get update && \
apt-get install -y curl gnupg2 build-essential libmysqlclient-dev pkg-config libssl-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install Node.js and PNPM
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \
npm install -g pnpm && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install .NET SDK
RUN apt-get update && \
apt-get install -y dotnet-sdk-7.0 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Setup Rust
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
# Cargo to ENV
ENV PATH="/root/.cargo/bin:${PATH}"
# Set the working directory
WORKDIR /usr/src/app
# Copy your monorepo content
COPY package*.json pnpm-lock.yaml nx.json migrations.json ./
COPY ./tools/ ./tools/
# COPY ./scripts/ ./scripts/
# Install dependencies
RUN pnpm install
COPY . .