diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 3b40663030..0000000000 --- a/.dockerignore +++ /dev/null @@ -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 -.* diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 4ee863fb46..0000000000 --- a/Dockerfile +++ /dev/null @@ -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"] diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh deleted file mode 100644 index 3ab9750210..0000000000 --- a/docker-entrypoint.sh +++ /dev/null @@ -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