Browse Source

fix: Remove unnecessary packages from container

pull/20/head v0.2.4
Ambrose Chua 9 months ago
parent
commit
71d2368ca4
  1. 1
      .dockerignore
  2. 12
      Dockerfile
  3. 4
      package-lock.json
  4. 2
      package.json
  5. 0
      rootowned/hi

1
.dockerignore

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

12
Dockerfile

@ -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
package-lock.json

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

2
package.json

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

0
rootowned/hi

Loading…
Cancel
Save