1
0
Fork 0

fix: Remove unnecessary packages from container

pull/20/head v0.2.4
Ambrose Chua 2021-11-16 22:10:10 +08:00
parent a04c4bc893
commit 71d2368ca4
5 changed files with 11 additions and 16 deletions

View File

@ -4,4 +4,5 @@ node_modules/
.github/
.gitignore
Dockerfile*
LICENSE
README.md

View File

@ -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/*
COPY . /usr/local/share/file-manager
RUN cd /usr/local/share/file-manager \
&& npm install .
VOLUME /data
WORKDIR /data
ENV NODE_ENV=production
COPY . /usr/local/share/file-manager
RUN cd /usr/local/share/file-manager \
&& npm install . \
&& rm -rf ~/.npm ~/.cache
WORKDIR /data
CMD ["node", "/usr/local/share/file-manager/index.js"]

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "file-manager",
"version": "0.2.0",
"version": "0.2.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "file-manager",
"version": "0.2.0",
"version": "0.2.4",
"dependencies": {
"@primer/octicons": "^16.1.1",
"archiver": "^5.3.0",

View File

@ -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"

View File