-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
24 lines (19 loc) · 948 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
FROM node:16.20.1-slim
RUN apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates \
&& apt-get install --no-install-recommends --no-install-suggests --reinstall -y fontconfig
ENV NODE_ENV production
WORKDIR /app
COPY --chown=node:node package.json yarn.lock .yarnrc.yml /app/
COPY --chown=node:node .yarn/cache/ /app/.yarn/cache/
COPY --chown=node:node .yarn/releases/ /app/.yarn/releases/
RUN yarn install --immutable --immutable-cache --check-cache
COPY --chown=node:node index.js /app/index.js
COPY --chown=node:node register_slash_commands.js /app/register_slash_commands.js
COPY --chown=node:node assets/ /app/assets/
COPY --chown=node:node commands/ /app/commands/
COPY --chown=node:node utils/ /app/utils/
RUN mv assets/register_slash_commands /usr/local/bin/register_slash_commands && chmod +x /usr/local/bin/register_slash_commands
USER node
EXPOSE 3000
CMD [ "yarn", "start" ]