-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (27 loc) · 747 Bytes
/
Dockerfile
File metadata and controls
37 lines (27 loc) · 747 Bytes
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
FROM ubuntu:latest
# Install necessary dependencies
RUN apt-get update && \
apt-get install -y curl gnupg apt-transport-https && \
rm -rf /var/lib/apt/lists/*
# Install Node.js 20
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get install -y nodejs
# Install .NET SDK 8
RUN apt-get update && \
apt-get install -y dotnet-sdk-8.0
# Install Java
RUN apt-get update && \
apt-get install -y openjdk-17-jdk
# Set JAVA_HOME environment variable
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
ENV PATH="$PATH:${JAVA_HOME}/bin"
# Set working directory
WORKDIR /app
# Install
COPY package*.json ./
# Install Node.js dependencies
RUN npm install
# Copy application
COPY . .
# Define default command
CMD ["npm", "start"]