mirror of
https://github.com/FranP-code/TurboRun.git
synced 2025-10-13 00:14:01 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| aafadd7804 | |||
| 3e22f703d8 | |||
| 93dfcb58fe | |||
| 52373b9cf7 |
3
.gitattributes
vendored
Normal file
3
.gitattributes
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
*.Dockerfile linguist-vendored
|
||||
*/Dockerfile linguist-vendored
|
||||
*.docker-compose.yml linguist-vendored
|
||||
13
Dockerfiles/node (npm)/Dockerfile
Normal file
13
Dockerfiles/node (npm)/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM mhart/alpine-node:14
|
||||
|
||||
RUN apk add curl
|
||||
|
||||
COPY [".", "/usr/src"]
|
||||
|
||||
WORKDIR "/usr/src"
|
||||
|
||||
RUN npm install
|
||||
|
||||
ARG NODE_ENV
|
||||
|
||||
CMD if [ "$NODE_ENV" = "develop" ] ; then npm run dev ; else npm run start ; fi
|
||||
10
Dockerfiles/node (yarn)/docker-compose.yml
Normal file
10
Dockerfiles/node (yarn)/docker-compose.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
version: "2.9"
|
||||
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
volumes:
|
||||
- .:/usr/src
|
||||
- /usr/src/node_modules
|
||||
environment:
|
||||
NODE_ENV: ${NODE_ENV}
|
||||
Reference in New Issue
Block a user