We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f8ec19 commit 99a89dbCopy full SHA for 99a89db
.dockerignore
@@ -2,3 +2,4 @@ bower_components
2
node_modules
3
tmp/*
4
dist/*
5
+.git/*
Dockerfile
@@ -1,17 +1,18 @@
1
-FROM node:20-alpine
+FROM node:20-bookworm
RUN mkdir -p /opt/kitsu/client
+RUN npm set cache /var/cache/npm
6
# Preinstall dependencies in an earlier layer so we don't reinstall every time
7
# any file changes.
8
COPY ./package.json /opt/kitsu/client/
9
COPY ./package-lock.json /opt/kitsu/client/
10
WORKDIR /opt/kitsu/client
-RUN npm ci
11
+RUN --mount=type=cache,target=/var/cache/npm npm install
12
13
# *NOW* we copy the codebase in
14
COPY . /opt/kitsu/client
15
16
ENTRYPOINT ["npm", "run"]
17
CMD ["dev", "--port=80", "--strictPort"]
-EXPOSE 80
18
+EXPOSE 80
0 commit comments