fix: update dev environment
This commit is contained in:
@@ -1,11 +1,23 @@
|
|||||||
node_modules
|
# .dockerignore
|
||||||
|
|
||||||
_site
|
# Git files
|
||||||
|
.git
|
||||||
npm-debug.log
|
.gitignore
|
||||||
|
|
||||||
|
# Docker files should not be in the build context
|
||||||
Dockerfile
|
Dockerfile
|
||||||
docker-compose.yml
|
docker-compose.yml
|
||||||
|
docker-compose.dev.yml
|
||||||
|
|
||||||
.git
|
# Node.js dependencies are installed inside the container
|
||||||
.gitignore
|
node_modules
|
||||||
|
npm-debug.log
|
||||||
|
|
||||||
|
# Build output is generated inside the container
|
||||||
|
_site
|
||||||
|
|
||||||
|
# VS Code configuration
|
||||||
|
.vscode
|
||||||
|
|
||||||
|
# Documentation / Readmes
|
||||||
|
*.md
|
@@ -18,8 +18,10 @@ RUN npm ci
|
|||||||
# This stage is for local development. It includes devDependencies and source code.
|
# This stage is for local development. It includes devDependencies and source code.
|
||||||
# In docker-compose.dev.yml, the source is mounted for hot-reloading.
|
# In docker-compose.dev.yml, the source is mounted for hot-reloading.
|
||||||
FROM deps AS development
|
FROM deps AS development
|
||||||
COPY . .
|
|
||||||
# The command is specified in docker-compose.dev.yml, but we can add a default.
|
# The source code is mounted via docker-compose for development,
|
||||||
|
# so we don't need to COPY it into the image. This keeps the dev image small.
|
||||||
|
# We only need the WORKDIR and the installed node_modules from the 'deps' stage.
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "start"]
|
||||||
|
|
||||||
# STAGE 3: Builder
|
# STAGE 3: Builder
|
||||||
|
Reference in New Issue
Block a user