-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
2 changed files
with
13 additions
and
8 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
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"] | ||
|
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