-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
75b1d71
commit a4973e0
Showing
8 changed files
with
114 additions
and
3 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
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
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
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
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,43 @@ | ||
# we try to aoid adding files to the docker images that change often | ||
# or that are not needed for running the docker image | ||
# tis greatly reduces the amount of times we need to rerun `npm install` when building image locally | ||
# https://codefresh.io/blog/not-ignore-dockerignore/ | ||
# https://docs.docker.com/engine/reference/builder/#dockerignore-file | ||
|
||
*.git | ||
code/.git | ||
|
||
# consider them hidden | ||
.* | ||
# you can add exceptions like in .gitignore to maintain a whitelist: | ||
# e.g. | ||
!.babelrc | ||
!.eslintrc | ||
!.eslintignore | ||
!.stylelintrc | ||
!.flowconfig | ||
!.jest.config.js | ||
!.jestEnvironment.js | ||
|
||
# do not copy over node_modules we will run `npm install` anyway | ||
node_modules | ||
|
||
# output from test runs and similar things | ||
*.log | ||
*.pid | ||
log | ||
coverage/ | ||
*.rdb | ||
.vscode/ | ||
.git | ||
*.log | ||
|
||
# IDE config files | ||
jsconfig.json | ||
*.iml | ||
|
||
# let's not get to recursive ;) | ||
Dockerfile* | ||
docker-compose*.yaml | ||
|
||
README.md |
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,14 @@ | ||
# 构建镜像的基础源镜像 | ||
FROM nginx:1.18.0 | ||
|
||
ENV APPDIR /usr/share/nginx/web | ||
RUN mkdir -p $APPDIR | ||
|
||
WORKDIR $APPDIR | ||
|
||
ADD ./code $APPDIR | ||
|
||
COPY web.conf /etc/nginx/conf.d | ||
RUN cat /etc/nginx/conf.d/web.conf | ||
|
||
EXPOSE 60015 |
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,14 @@ | ||
typescriptlang.org | ||
--- | ||
|
||
> Port: `60015` - [typescriptlang.org](https://typeorm.io/) | ||
```shell | ||
docker pull wcjiang/typescriptlang.org:latest | ||
``` | ||
|
||
Run Server | ||
|
||
```shell | ||
docker run --name typescriptlang.org -p 60015:60015 --restart=always -d wcjiang/typescriptlang.org:latest | ||
``` |
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 @@ | ||
|
||
server { | ||
listen 60015; | ||
root /usr/share/nginx/web/typescriptlang.org; | ||
location / { | ||
try_files $uri $uri/ /index.html =404; | ||
} | ||
} |