mirror of
https://github.com/FranP-code/TurboRun.git
synced 2025-10-13 00:14:01 +00:00
initial commit 🚀
This commit is contained in:
13
Dockerfiles/node/Dockerfile
Normal file
13
Dockerfiles/node/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM mhart/alpine-node:14
|
||||
|
||||
RUN apk add curl
|
||||
|
||||
COPY [".", "/usr/src"]
|
||||
|
||||
WORKDIR "/usr/src"
|
||||
|
||||
RUN yarn
|
||||
|
||||
ARG NODE_ENV
|
||||
|
||||
CMD if [ "$NODE_ENV" = "develop" ] ; then yarn run dev ; else yarn run start ; fi
|
||||
10
Dockerfiles/node/docker-compose.yml
Normal file
10
Dockerfiles/node/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