forked from valentinaciav/otto-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (39 loc) · 943 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
FROM node:12-alpine
WORKDIR /app
# Instal base packages
RUN set -ex && \
apk update && \
apk add ca-certificates && \
update-ca-certificates && \
apk add --no-cache \
openssl \
curl \
git \
build-base \
libc6-compat \
openssh-client
# Install additional app packages
RUN apk add --no-cache \
sox \
opus-tools # Used to decode Telegram Audio notes
# Install imagemagick
RUN apk add --no-cache imagemagick graphicsmagick
# Cleanup
RUN rm -rf /var/cache/apk/*
# Install node modules
COPY package.json yarn.lock tsconfig.json .eslintrc jest.config.js .prettierrc ./
RUN yarn install
# Copy my code
COPY ./src ./src
COPY ./src-client ./src-client
COPY ./etc ./etc
# Install workspaces packages
RUN yarn install
# Build code
RUN yarn build:server
RUN yarn build:client
# Clean src
RUN rm -rf ./src
ENTRYPOINT [ "yarn", "start:built" ]
VOLUME /app/cache /app/log /app/keys /app/tmp
EXPOSE 80