-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (32 loc) · 868 Bytes
/
Copy pathDockerfile
File metadata and controls
50 lines (32 loc) · 868 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
38
39
40
41
42
43
44
45
46
47
48
49
FROM sitespeedio/node:ubuntu-22-04-nodejs-20.9.0
LABEL authors="zalubo"
LABEL team="Ghosts"
RUN apt-get update && apt-get install -y \
openjdk-17-jdk \
npm \
nginx \
findutils \
curl
WORKDIR /server
COPY ./server/build.gradle /server/
COPY ./server/settings.gradle /server/
COPY ./server/gradlew /server/
COPY ./server/gradle /server/gradle
COPY ./server/src /server/src
RUN ./gradlew build
# Expose the application's port (adjust as needed)
WORKDIR /client
# Copy package.json and package-lock.json to the container
COPY ./client/package*.json ./
# Install project dependencies
RUN npm install
# Copy the rest of the application code to the container
COPY ./client/ .
RUN npm run build
WORKDIR /etc/nginx/conf.d
COPY ./nginx/default.conf .
COPY ./nginx/nginx.conf ./../
COPY ./start.sh /
RUN chmod +x /start.sh
EXPOSE 80
CMD ["/start.sh"]