Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +14 -42
Dockerfile
CHANGED
@@ -1,48 +1,20 @@
|
|
1 |
-
|
2 |
|
3 |
-
|
4 |
-
|
|
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
ARG DEBCONF_NONINTERACTIVE_SEEN="true"
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
apt-get --no-install-recommends -y install \
|
13 |
-
bc \
|
14 |
-
curl \
|
15 |
-
7zip \
|
16 |
-
wsdd \
|
17 |
-
samba \
|
18 |
-
xz-utils \
|
19 |
-
wimtools \
|
20 |
-
dos2unix \
|
21 |
-
cabextract \
|
22 |
-
genisoimage \
|
23 |
-
libxml2-utils \
|
24 |
-
libarchive-tools && \
|
25 |
-
apt-get clean && \
|
26 |
-
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
27 |
|
28 |
-
|
29 |
-
|
30 |
|
31 |
-
|
32 |
-
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
ARG VERSION_ARG="4.00"
|
38 |
-
RUN echo "$VERSION_ARG" > /run/version
|
39 |
-
|
40 |
-
EXPOSE 8006 3389
|
41 |
-
VOLUME /storage
|
42 |
-
|
43 |
-
ENV VERSION="11"
|
44 |
-
ENV RAM_SIZE="4G"
|
45 |
-
ENV CPU_CORES="2"
|
46 |
-
ENV DISK_SIZE="64G"
|
47 |
-
|
48 |
-
ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]
|
|
|
1 |
+
FROM node:18-slim
|
2 |
|
3 |
+
# Create the log and db directories and set permissions
|
4 |
+
RUN mkdir -p /usr/src/app/log /usr/src/app/db && \
|
5 |
+
chown -R node:node /usr/src/app/log /usr/src/app/db
|
6 |
|
7 |
+
# Set the working directory
|
8 |
+
WORKDIR /usr/src/app
|
|
|
9 |
|
10 |
+
# Copy package.json and package-lock.json first
|
11 |
+
COPY package*.json ./
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
+
# Install dependencies
|
14 |
+
RUN npm install
|
15 |
|
16 |
+
# Copy the rest of your application files
|
17 |
+
COPY . .
|
18 |
|
19 |
+
# Command to run your application
|
20 |
+
CMD ["node", "index.js"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|