-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (28 loc) · 926 Bytes
/
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
#FROM node:18-slim
FROM node:18-alpine
LABEL maintainer="horologger <[email protected]>"
WORKDIR /
COPY . .
#RUN apt-get update
RUN apk update
RUN apk add --no-cache bash
#RUN apt-get -y install gpm procps lsof vim sqlite3 yq
RUN apk add gpm procps lsof vim sqlite yq
RUN npm install --omit=dev --no-save
RUN chown -R node:node /server.js
RUN chmod 777 /server.js
ENV NODE_ENV=production
RUN chown -R node:node /data
RUN chmod 777 /data
RUN rm -f /data/empty.dir
EXPOSE 80
EXPOSE 8080
# Umbrel Packaging
# USER node # Changing to using docker_entrypoint.sh for start9 packaging
# CMD [ "npm", "start" ] # Changing to using docker_entrypoint.sh for start9 packaging
# Start9 Packaging
RUN rm -f /docker_entrypoint.sh
ADD ./docker_entrypoint.sh /usr/local/bin/docker_entrypoint.sh
RUN chmod a+x /usr/local/bin/docker_entrypoint.sh
# Run docker_entrypoint.sh
ENTRYPOINT ["/usr/local/bin/docker_entrypoint.sh"]