docker-scripts/linux/ecosystem/electron-release-server/Dockerfile
2024-07-28 01:48:50 +03:00

30 lines
868 B
Docker

FROM epicmorg/nodejs:node12
RUN git clone https://github.com/ArekSredzki/electron-release-server.git /usr/src/electron-release-server && \
tree /usr/src/electron-release-server
WORKDIR /usr/src/electron-release-server
RUN npm install \
&& ./node_modules/.bin/bower install --allow-root \
&& npm cache clean --force \
&& npm prune --production
# Bundle app source
RUN cp -rfv /usr/src/electron-release-server/config/docker.js /usr/src/electron-release-server/config/local.js
#healthcheck. good practice
HEALTHCHECK --interval=2m --timeout=3s CMD curl -f http://localhost:80/ || exit 1
# Add image configuration and scripts
COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
RUN chmod 755 /usr/bin/docker-entrypoint.sh
RUN updatedb
#Final config
EXPOSE 80 5000
ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
CMD ["docker-entrypoint.sh"]