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:
parent
5dedfbe82e
commit
1f46910cd6
4 changed files with 4036 additions and 4003 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal 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
11
docker-compose.yml
Normal 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
8
docker-local-entrypoint.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
yarn global add rimraf
|
||||
rimraf -g '**/node_modules'
|
||||
|
||||
yarn install
|
||||
|
||||
exec "$@"
|
Loading…
Add table
Reference in a new issue