mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-03-31 06:24:00 -04:00
20 lines
305 B
Docker
20 lines
305 B
Docker
FROM alpine:3.13
|
|
|
|
# Install packages
|
|
RUN apk add --no-cache nginx nodejs npm
|
|
|
|
# Create app directory
|
|
WORKDIR /usr/src/app
|
|
|
|
# Bundle app source
|
|
COPY . .
|
|
|
|
# Create production build
|
|
RUN npm ci --only=production && npm run build
|
|
|
|
# Expose app
|
|
EXPOSE 3001
|
|
|
|
# Run app
|
|
CMD ["node", "/usr/src/app/app/server.js"]
|