~mser/emote-server

ref: 1.3.0 emote-server/Dockerfile -rw-r--r-- 447 bytes
b83ab7ceMichael Serajnik Merge branch 'release/1.3.0' 4 months ago
                                                                                
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
FROM mhart/alpine-node:16

ARG USER_ID=1000
ARG GROUP_ID=1000

ENV \
  USER_ID=$USER_ID \
  GROUP_ID=$GROUP_ID

WORKDIR /usr/src/app

COPY . .

RUN \
  apk --no-cache add \
    gettext && \
  yarn --production && \
  chown -R ${USER_ID}:${GROUP_ID} /usr/src/app && \
  mkdir /data && chown -R ${USER_ID}:${GROUP_ID} /data

COPY docker-cmd-start.sh /usr/local/bin/start
RUN chmod +x /usr/local/bin/start

USER ${USER_ID}:${GROUP_ID}

CMD ["start"]