no1b4me commited on
Commit
638d460
·
verified ·
1 Parent(s): 7f107b7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -42
Dockerfile CHANGED
@@ -1,48 +1,20 @@
1
- ARG VERSION_ARG="4.00"
2
 
3
- FROM scratch AS build-amd64
4
- COPY --from=qemux/qemu-docker:6.06 / /
 
5
 
6
- ARG DEBCONF_NOWARNINGS="yes"
7
- ARG DEBIAN_FRONTEND="noninteractive"
8
- ARG DEBCONF_NONINTERACTIVE_SEEN="true"
9
 
10
- RUN set -eu && \
11
- apt-get update && \
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
- COPY --chmod=755 ./src /run/
29
- COPY --chmod=755 ./assets /run/assets
30
 
31
- ADD --chmod=755 https://raw.githubusercontent.com/christgau/wsdd/v0.8/src/wsdd.py /usr/sbin/wsdd
32
- ADD --chmod=664 https://github.com/qemus/virtiso-whql/releases/download/v1.9.43-0/virtio-win-1.9.43.tar.xz /drivers.txz
33
 
34
- FROM dockurr/windows-arm:${VERSION_ARG} AS build-arm64
35
- FROM build-${TARGETARCH}
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"]