Skip to content

Commit 71d2368

Browse files
fix: Remove unnecessary packages from container
1 parent a04c4bc commit 71d2368

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ node_modules/
44
.github/
55
.gitignore
66
Dockerfile*
7+
LICENSE
78
README.md

Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
FROM node:16-bullseye
22

3-
RUN apt-get update \
4-
&& apt-get install -y \
5-
build-essential zip unzip \
6-
&& apt-get clean \
7-
&& rm -rf /var/lib/apt/lists/*
3+
ENV NODE_ENV=production
84

95
COPY . /usr/local/share/file-manager
106
RUN cd /usr/local/share/file-manager \
11-
&& npm install .
7+
&& npm install . \
8+
&& rm -rf ~/.npm ~/.cache
129

13-
VOLUME /data
1410
WORKDIR /data
1511

16-
ENV NODE_ENV=production
17-
1812
CMD ["node", "/usr/local/share/file-manager/index.js"]

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "file-manager",
33
"description": "A simple file manager",
4-
"version": "0.2.2",
4+
"version": "0.2.4",
55
"scripts": {
66
"format": "prettier --write .",
77
"start": "node index.js"

rootowned/hi

Whitespace-only changes.

0 commit comments

Comments
 (0)