mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Delete all Docker related files
The Docker images are outsourced to https://github.com/bastilimbach/docker-MagicMirror
This commit is contained in:
@@ -1,72 +0,0 @@
|
||||
# Various Node ignoramuses.
|
||||
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
lib-cov
|
||||
coverage
|
||||
.grunt
|
||||
.lock-wscript
|
||||
build/Release
|
||||
node_modules
|
||||
jspm_modules
|
||||
.npm
|
||||
.node_repl_history
|
||||
|
||||
# Various Windows ignoramuses.
|
||||
Thumbs.db
|
||||
ehthumbs.db
|
||||
Desktop.ini
|
||||
$RECYCLE.BIN/
|
||||
*.cab
|
||||
*.msi
|
||||
*.msm
|
||||
*.msp
|
||||
*.lnk
|
||||
|
||||
# Various OSX ignoramuses.
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
Icon
|
||||
._*
|
||||
.DocumentRevisions-V100
|
||||
.fseventsd
|
||||
.Spotlight-V100
|
||||
.TemporaryItems
|
||||
.Trashes
|
||||
.VolumeIcon.icns
|
||||
.AppleDB
|
||||
.AppleDesktop
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
|
||||
# Various Linux ignoramuses.
|
||||
|
||||
.fuse_hidden*
|
||||
.directory
|
||||
.Trash-*
|
||||
|
||||
# Various Magic Mirror ignoramuses and anti-ignoramuses.
|
||||
|
||||
# Don't ignore the node_helper core module.
|
||||
!/modules/node_helper
|
||||
!/modules/node_helper/**
|
||||
|
||||
# Ignore all modules except the default modules.
|
||||
/modules/**
|
||||
!/modules/default/**
|
||||
|
||||
# Ignore changes to the custom css files.
|
||||
/css/custom.css
|
||||
|
||||
# Ignore unnecessary files for docker
|
||||
CHANGELOG.md
|
||||
LICENSE.md
|
||||
README.md
|
||||
Gruntfile.js
|
||||
.*
|
27
Dockerfile
27
Dockerfile
@@ -1,27 +0,0 @@
|
||||
FROM izone/arm:node
|
||||
|
||||
# Set env variables
|
||||
ENV NODE_ENV production
|
||||
ENV MM_PORT 8080
|
||||
|
||||
WORKDIR /opt/magic_mirror
|
||||
|
||||
# Cache node_modules
|
||||
COPY package.json /opt/magic_mirror
|
||||
RUN npm install
|
||||
|
||||
# Copy all needed files
|
||||
COPY . /opt/magic_mirror
|
||||
|
||||
# Save/Cache config and modules folder for docker-entrypoint
|
||||
COPY /modules /opt/magic_mirror/unmount_modules
|
||||
COPY /config /opt/magic_mirror/unmount_config
|
||||
|
||||
# Convert docker-entrypoint.sh to unix format and grant execution privileges
|
||||
RUN apk update \
|
||||
&& apk add dos2unix --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted \
|
||||
&& dos2unix docker-entrypoint.sh \
|
||||
&& chmod +x docker-entrypoint.sh
|
||||
|
||||
EXPOSE $MM_PORT
|
||||
ENTRYPOINT ["/opt/magic_mirror/docker-entrypoint.sh"]
|
@@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -f /opt/magic_mirror/modules ]; then
|
||||
cp -Rn /opt/magic_mirror/unmount_modules/. /opt/magic_mirror/modules
|
||||
fi
|
||||
|
||||
if [ ! -f /opt/magic_mirror/config ]; then
|
||||
cp -Rn /opt/magic_mirror/unmount_config/. /opt/magic_mirror/config
|
||||
fi
|
||||
|
||||
node serveronly
|
Reference in New Issue
Block a user