This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:12 | |
LABEL author="Huong Nguyen (vnnvanhuong@gmail.com)" | |
# Use NODE_ENV=production to ensure that | |
# logging is kept to a minimum | |
# more caching levels takes | |
# don’t install dev node_modules | |
ARG NODE_ENV=production | |
ARG UID=999 | |
ARG GUI=999 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const express = require('express'); | |
const PORT = process.env.PORT || 8080; | |
const app = express(); | |
app.use(express.static('public', { | |
etag: true, |
OlderNewer