Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loicmahieu/alpine-nginx-node
Docker will Node.js and nginx installed for building static and serving static apps
https://github.com/loicmahieu/alpine-nginx-node
Last synced: 27 days ago
JSON representation
Docker will Node.js and nginx installed for building static and serving static apps
- Host: GitHub
- URL: https://github.com/loicmahieu/alpine-nginx-node
- Owner: LoicMahieu
- Created: 2015-09-28T16:45:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-27T11:56:53.000Z (about 9 years ago)
- Last Synced: 2024-04-11T13:05:53.719Z (9 months ago)
- Size: 141 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker image: alpine-nginx-node
Example:
```
FROM loicmahieu/alpine-nginx-nodeRUN apk --update add git make gcc g++ python
RUN mkdir -p /tmp/build-app
COPY package.json /tmp/build-app/package.json
RUN cd /tmp/build-app && \
npm install
COPY . /tmp/build-app
RUN cd /tmp/build-app && \
npm run build && \
mv /tmp/build-app/build /app && \
apk del git make gcc g++ python && \
rm -rf /tmp/* \
/var/cache/apk/* && \
/usr/bin/uninstall_node
WORKDIR /app#### NGINX CONF
COPY ./nginx/nginx.conf /etc/nginx/conf/nginx.confEXPOSE 80
```