新增构建OpenSSL镜像相关文件

This commit is contained in:
2024-03-15 14:52:38 +08:00
committed by huty
parent 43337c1a0b
commit 132c17af2d
10119 changed files with 1581963 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
######
# DB #
######
DB_HOST=db
DB_PORT=3306
DB_USERNAME=std_notes_user
DB_PASSWORD=changeme123
DB_DATABASE=standard_notes_db
DB_TYPE=mysql
#########
# CACHE #
#########
REDIS_PORT=6379
REDIS_HOST=cache
CACHE_TYPE=redis
########
# KEYS #
########
AUTH_JWT_SECRET=p7FBtxFXsHXCrKbxdQt8imEQ5XN2erUh
AUTH_SERVER_ENCRYPTION_SERVER_KEY=zq5dyXgbgU6SkkT9B8PMXmKeQjQbCbaa
VALET_TOKEN_SECRET=G8XXbEtFpZ776vZrmjgpX8HqQ8tNLUGe

View File

@@ -0,0 +1,33 @@
FROM node:20.6.1-alpine
ENV NODE_ENV production
RUN apk add --update --no-cache \
g++ \
make \
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"]