Sign inSign up

thonatos/alpine-nginx-nodejs

By thonatos

•Updated almost 9 years ago

Alpine Nginx & Node.js Image

Image
0

2.2K

thonatos/alpine-nginx-nodejs repository overview

Alpine Nginx & Node.js Image

⁠Information

  • Node.js
    • NODE=4.5.0
    • NPM=2
  • Nginx

⁠Usage

  • on-build
# Dockerfile
FROM thonatos/alpine-nginx-nodejs:on-build

ENV NGINXLOCATION=CN

ADD root/ /

ADD src/ /app

RUN cd /app && \
    npm install --production && \
    ln -sf /dev/stdout /var/log/nginx/access.log && \
    ln -sf /dev/stderr /var/log/nginx/error.log

EXPOSE 80 443 3000

ENTRYPOINT ["/init"]

# Replace the entry with yours.
CMD ["node", "/app/backend/bin/autoload.js"]

Tag summary

Content type

Image

Digest

Size

43.2 MB

Last updated

almost 9 years ago

docker pull thonatos/alpine-nginx-nodejs