forked from glenndehaan/unifi-voucher-site
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
56 lines (42 loc) · 920 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# Define OS
#
FROM alpine
#
# Basic OS management
#
# Install packages
RUN apk add --no-cache nodejs npm python3 py3-pip
RUN apk update && apk add --virtual build-dependencies build-base gcc wget git
RUN apk add jpeg-dev zlib-dev
ENV LIBRARY_PATH=/lib:/usr/lib
RUN apk add --no-cache \
build-base \
g++ \
cairo-dev \
jpeg-dev \
pango-dev \
giflib-dev
RUN apk add --update --repository http://dl-3.alpinelinux.org/alpine/edge/testing libmount ttf-dejavu ttf-droid ttf-freefont ttf-liberation fontconfig
#RUN apk add py3-brother_ql
RUN pip install --upgrade brother_ql --break-system-packages
#
# Require app
#
# Create app directory
WORKDIR /app
# Bundle app source
COPY . .
# Install dependencies
RUN npm ci --only=production
# Create production build
RUN npm run build
#
# Setup app
#
# Expose app
EXPOSE 3000
# Set node env
ENV NODE_ENV=production
# Run app
CMD ["node", "/app/server.js"]