0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Initial docker commit

This commit is contained in:
Joe Grigg 2024-10-09 15:36:53 +01:00
parent 5dedfbe82e
commit 1f46910cd6
4 changed files with 4036 additions and 4003 deletions

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
ARG NODE_VERSION=20.15.1
FROM node:$NODE_VERSION-bullseye
WORKDIR /home/ghost
COPY docker-local-entrypoint.sh .
ENV NX_DAEMON=true
EXPOSE 2368
EXPOSE 4200
ENTRYPOINT ["./docker-local-entrypoint.sh"]
CMD ["yarn", "dev"]

11
docker-compose.yml Normal file
View file

@ -0,0 +1,11 @@
services:
ghost:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/home/ghost
restart: always
ports:
- 2368:2368
- 4200:4200

8
docker-local-entrypoint.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
yarn global add rimraf
rimraf -g '**/node_modules'
yarn install
exec "$@"

8006
yarn.lock

File diff suppressed because it is too large Load diff