2023-02-03 10:26:06 +00:00
|
|
|
FROM node:18.13.0-alpine
|
|
|
|
|
|
|
|
ENV NODE_ENV production
|
|
|
|
|
2023-02-06 12:35:58 +00:00
|
|
|
RUN apk add --update --no-cache \
|
|
|
|
openssl \
|
|
|
|
curl \
|
|
|
|
bash \
|
|
|
|
py3-pip
|
2023-02-03 10:26:06 +00:00
|
|
|
|
|
|
|
RUN pip install --no-cache-dir --upgrade supervisor
|
|
|
|
|
|
|
|
RUN mkdir -p /var/lib/server/logs
|
|
|
|
|
|
|
|
COPY docker/supervisord.conf /etc/supervisord.conf
|
|
|
|
|
|
|
|
COPY docker/docker-entrypoint.sh /usr/local/bin/
|
|
|
|
|
|
|
|
COPY . /opt/server
|
|
|
|
|
|
|
|
WORKDIR /opt/server
|
|
|
|
|
2023-02-06 12:35:58 +00:00
|
|
|
RUN corepack enable
|
|
|
|
|
2023-02-03 10:26:06 +00:00
|
|
|
RUN yarn install --immutable
|
|
|
|
|
|
|
|
RUN yarn build
|
|
|
|
|
|
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|