Inital commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
FROM node:22-bookworm-slim AS build
|
||||
|
||||
WORKDIR /misskey
|
||||
|
||||
COPY package.json package-lock.json .npmrc ./
|
||||
RUN npm ci --no-audit --no-fund
|
||||
|
||||
COPY . .
|
||||
RUN cp docker/default.yml .config/default.yml \
|
||||
&& cp docker/test.yml .config/test.yml \
|
||||
&& NODE_ENV=production npm run build
|
||||
|
||||
FROM node:22-bookworm-slim AS runtime
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ca-certificates imagemagick \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /misskey
|
||||
ENV NODE_ENV=production
|
||||
|
||||
COPY --from=build /misskey ./
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["npm", "start"]
|
||||
@@ -0,0 +1,29 @@
|
||||
maintainer: '@local'
|
||||
|
||||
url: 'http://localhost:3000'
|
||||
|
||||
port: 3000
|
||||
|
||||
https: null
|
||||
|
||||
mongodb:
|
||||
host: mongodb
|
||||
port: 27017
|
||||
db: misskey
|
||||
user: null
|
||||
pass: null
|
||||
|
||||
redis:
|
||||
host: redis
|
||||
port: 6379
|
||||
pass: null
|
||||
|
||||
elasticsearch:
|
||||
enable: false
|
||||
host: localhost
|
||||
port: 9200
|
||||
pass: null
|
||||
|
||||
recaptcha:
|
||||
site_key: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
|
||||
secret_key: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
|
||||
@@ -0,0 +1,22 @@
|
||||
maintainer: '@local'
|
||||
url: 'http://localhost:3000'
|
||||
port: 3000
|
||||
https: null
|
||||
mongodb:
|
||||
host: mongodb
|
||||
port: 27017
|
||||
db: test-misskey
|
||||
user: null
|
||||
pass: null
|
||||
redis:
|
||||
host: redis
|
||||
port: 6379
|
||||
pass: null
|
||||
elasticsearch:
|
||||
enable: false
|
||||
host: localhost
|
||||
port: 9200
|
||||
pass: null
|
||||
recaptcha:
|
||||
site_key: test
|
||||
secret_key: test
|
||||
Reference in New Issue
Block a user