Skip to content

Commit

Permalink
Merge pull request #14 from tulsawebdevs/feat/containers
Browse files Browse the repository at this point in the history
feat: setup basic docker dev environment
  • Loading branch information
zenlex authored Feb 10, 2024
2 parents b91c9b8 + d35b08b commit 2ec20be
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Dockerfile

node_modules
.dockerignore
.gitignore
.git
.env
.vscode
.github
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:20

WORKDIR /app

COPY package.json package-lock.json ./

RUN npm ci

COPY . .

RUN chmod +x entrypoint.sh

CMD ["sh", "/app/entrypoint.sh"]
3 changes: 3 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ export default defineConfig({
site: 'https://tulsawebdevs.github.io',
base: '/website',
integrations: [tailwind()],
server:{
host: true
}
});
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
app:
build: ./
restart: unless-stopped
volumes:
- ./:/app
ports:
- 4321:4321
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
npm ci
npm run dev

0 comments on commit 2ec20be

Please sign in to comment.