standardnotes-server/Dockerfile
Karol Sójko c2cbf44594
chore: upgrade node version (#835)
* chore: upgrade node version

* chore: upgrade yarn

* fix: yarn setup:

* remove bundle plugin

* fix bundling

* fix env path for files
2023-09-18 13:32:49 +02:00

31 lines
501 B
Docker

FROM node:20.6.1-alpine
ENV NODE_ENV production
RUN apk add --update --no-cache \
openssl \
curl \
bash \
py3-pip
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
RUN corepack enable
RUN yarn install --immutable
RUN CI=true yarn build
RUN mkdir -p /opt/shared/uploads
ENTRYPOINT ["docker-entrypoint.sh"]