Skip to content

Commit

Permalink
Added Dcokerfile config
Browse files Browse the repository at this point in the history
  • Loading branch information
delirial committed Jul 29, 2019
1 parent f4035d8 commit 631efdf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
19 changes: 12 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
FROM node:10-alpine

FROM mariadb:10.4 as database
LABEL Delirial [email protected]
LABEL version="1.0"
LABEL description="API backend for testing \
and developed on Node+Express+Mongo. \
--- Postgresql Stack ----"
FROM postgresql:alpine

LABEL description="API backend for testing and developed on Node+Express+Mongo. "
RUN apt-get update
RUN apt-get install nodejs npm -y
RUN node -v && npm -v
ENV MYSQL_ROOT_PASSWORD=1234
WORKDIR /app
COPY . .
RUN npm i
EXPOSE 5000
EXPOSE 3306
CMD ["npm","run","start"]

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "This repo contain the back API for the web application myment.",
"main": "index.js",
"scripts": {
"start": "node app.js",
"start": "mysqld && node app.js",
"dev": "nodemon app.js"
},
"keywords": [],
Expand Down

0 comments on commit 631efdf

Please sign in to comment.