Skip to content

Commit

Permalink
fix: Remove unnecessary packages from container
Browse files Browse the repository at this point in the history
  • Loading branch information
serverwentdown committed Nov 16, 2021
1 parent a04c4bc commit 71d2368
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ node_modules/
.github/
.gitignore
Dockerfile*
LICENSE
README.md
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
FROM node:16-bullseye

RUN apt-get update \
&& apt-get install -y \
build-essential zip unzip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV NODE_ENV=production

COPY . /usr/local/share/file-manager
RUN cd /usr/local/share/file-manager \
&& npm install .
&& npm install . \
&& rm -rf ~/.npm ~/.cache

VOLUME /data
WORKDIR /data

ENV NODE_ENV=production

CMD ["node", "/usr/local/share/file-manager/index.js"]
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "file-manager",
"description": "A simple file manager",
"version": "0.2.2",
"version": "0.2.4",
"scripts": {
"format": "prettier --write .",
"start": "node index.js"
Expand Down
Empty file removed rootowned/hi
Empty file.

0 comments on commit 71d2368

Please sign in to comment.