-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker setup to build + run the project
- Loading branch information
1 parent
83e30b2
commit 479cd32
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# build output | ||
dist/ | ||
# generated types | ||
.astro/ | ||
|
||
# dependencies | ||
node_modules/ | ||
|
||
# logs | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
|
||
# environment variables | ||
.env | ||
.env.production | ||
|
||
# macOS-specific files | ||
.DS_Store | ||
|
||
.cache | ||
|
||
# playwright | ||
test-results | ||
|
||
docker/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM node:lts | ||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y ruby-full && \ | ||
gem install bundler && \ | ||
bundle install && \ | ||
npm install && \ | ||
npm run build | ||
|
||
ENV HOST=0.0.0.0 | ||
ENV PORT=4321 | ||
EXPOSE 4321 | ||
|
||
CMD npm start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
services: | ||
cheatsheet: | ||
image: cheatsheet | ||
build: | ||
context: .. | ||
dockerfile: ./docker/Dockerfile | ||
ports: | ||
- "4321:4321" |