Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "Astro Starlight Dev",
"dockerComposeFile": "./docker-compose.yml",
"service": "astro-dev",
"service": "df-astro-dev",
"workspaceFolder": "/site",
"workspaceMount": "source=${localWorkspaceFolder},target=/site,type=bind",
"forwardPorts": [4321],
"forwardPorts": [4322],
"postStartCommand": "npm run dev",
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
Expand Down
11 changes: 7 additions & 4 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
services:
astro-dev:
df-astro-dev:
build:
context: ../
dockerfile: Dockerfile
ports:
- "4321:4321"
- "4322:4322"
volumes:
- ..:/site
- astro-node_modules:/site/node_modules
- df-astro-node_modules:/site/node_modules
tty: true
stdin_open: true
command: sleep infinity
volumes:
astro-node_modules:
df-astro-node_modules:
6 changes: 0 additions & 6 deletions .devcontainer/package-lock.json

This file was deleted.

10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ WORKDIR /site

COPY package*.json /site/

RUN apt-get update && apt-get upgrade
RUN apt-get update && apt-get upgrade -y
RUN apt-get install git curl -y

RUN npm install
RUN npm run build
# RUN npm run build

ENV HOST=0.0.0.0
ENV PORT=4321
ENV PORT=4322

# Expose the dev server port
EXPOSE 4321
EXPOSE 4322

# Start the dev server
CMD ["npm", "run", "dev"]
# CMD ["npm", "run", "dev"]
Loading