We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf50f1e commit 6b97957Copy full SHA for 6b97957
1 file changed
Dockerfile
@@ -1,19 +1,25 @@
1
-FROM haxe:4.3-alpine
2
-WORKDIR /usr/src/app
+FROM haxe:4.3-alpine3.22
3
4
RUN apk add nodejs npm git
5
+USER 0
6
+RUN addgroup -g 1000 app && adduser -u 1000 -G app -s /bin/sh -D app && mkdir /app
7
+WORKDIR /app
8
+
9
COPY res ./res
10
COPY src ./src
11
COPY user ./user
12
COPY build-*.hxml ./
13
COPY package*.json ./
14
COPY default-config.json ./
15
16
+RUN chown -R app:app /app
17
18
+USER 1000
19
RUN npm ci;
-RUN haxelib install all --always
-RUN haxe build-all.hxml
20
+RUN haxelib setup /app \
21
+ && haxelib install all --always && \
22
+ haxe build-all.hxml
23
-EXPOSE 4200
24
+ENTRYPOINT [ "npm", "start" ]
25
-CMD npm start
0 commit comments