mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-15 03:01:37 -05:00
Switched to using full devcontainer by default
This commit is contained in:
parent
d754b8a83f
commit
c839ec294f
3 changed files with 3 additions and 9 deletions
|
@ -44,14 +44,14 @@ EXPOSE 7174
|
|||
### This is a full devcontainer with all the code and dependencies installed
|
||||
### Useful in an environment like Github Codespaces where you don't mount your local code into the container
|
||||
FROM base-devcontainer AS full-devcontainer
|
||||
WORKDIR /workspaces/ghost
|
||||
WORKDIR /workspaces/Ghost
|
||||
COPY ../../ .
|
||||
RUN yarn install --frozen-lockfile --prefer-offline --cache-folder $YARN_CACHE_FOLDER
|
||||
|
||||
# Development Stage: alternative entrypoint for development with some caching optimizations
|
||||
FROM base-devcontainer AS development
|
||||
|
||||
WORKDIR /workspaces/ghost
|
||||
WORKDIR /workspaces/Ghost
|
||||
|
||||
COPY ../../ .
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Ghost Local DevContainer",
|
||||
"dockerComposeFile": ["./.docker/base.compose.yml", "./.docker/base-devcontainer.compose.yml"],
|
||||
"dockerComposeFile": ["./.docker/base.compose.yml", "./.docker/full-devcontainer.compose.yml"],
|
||||
"service": "ghost",
|
||||
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
|
||||
"shutdownAction": "stopCompose",
|
||||
|
|
|
@ -5,12 +5,6 @@ set -e
|
|||
echo "Setting up local config file..."
|
||||
node .devcontainer/createLocalConfig.js
|
||||
|
||||
echo "Cleaning up any previous installs..."
|
||||
yarn clean:hard
|
||||
|
||||
echo "Installing dependencies..."
|
||||
yarn install
|
||||
|
||||
echo "Updating git submodules..."
|
||||
git submodule update --init --recursive
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue