Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-05-04 19:57:29 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
23ee8b6a33a2dee1189e21879cf302ba6ab2f582
23ee8b6a
1 parent
b96fd85a
add dockerize
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
back/Dockerfile
back/Dockerfile
View file @
23ee8b6
...
...
@@ -4,11 +4,17 @@ RUN npm i -g @prisma/cli
RUN
mkdir /app
WORKDIR
/app
ENV
DOCKERIZE_VERSION v0.6.1
RUN
wget https://github.com/jwilder/dockerize/releases/download/
$DOCKERIZE_VERSION
/dockerize-alpine-linux-amd64-
$DOCKERIZE_VERSION
.tar.gz
\
&&
tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-
$DOCKERIZE_VERSION
.tar.gz
\
&&
rm dockerize-alpine-linux-amd64-
$DOCKERIZE_VERSION
.tar.gz
ENTRYPOINT
[ "dockerize", "-wait", "tcp://root:prisma@mysql:3306/prisma:3306", "-timeout", "25s" ]
COPY package*.json ./
COPY prisma ./prisma/
RUN
npm install
&&
npx prisma generate
CMD
["npm","start"]
COPY . .
\ No newline at end of file
...
...
Please
register
or
login
to post a comment