-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from hackforla/dev
Bring up to date with Dev
- Loading branch information
Showing
5 changed files
with
72 additions
and
31 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
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,16 +1,20 @@ | ||
# base image | ||
FROM node:12.2.0-alpine | ||
RUN npm install webpack webpack-cli -g | ||
|
||
WORKDIR /tmp | ||
COPY package.json /tmp/ | ||
RUN npm config set registry http://registry.npmjs.org/ && npm install | ||
|
||
# set working directory | ||
WORKDIR /app | ||
COPY . /app/ | ||
RUN cp -a /tmp/node_modules /app/ | ||
|
||
# add `/app/node_modules/.bin` to $PATH | ||
ENV PATH /app/node_modules/.bin:$PATH | ||
RUN webpack | ||
|
||
# install and cache app dependencies | ||
COPY package.json /app/package.json | ||
RUN npm install --silent | ||
RUN npm install [email protected] -g --silent | ||
ENV NODE_ENV=production | ||
ENV PORT=8080 | ||
RUN ls | ||
CMD [ "npm", "run-script", "dev" ] | ||
|
||
# start app | ||
CMD ["npm", "start"] | ||
EXPOSE 8080 |
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
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class ingress_service(object): | ||
def __init__(self): | ||
pass | ||
|
||
def injest(self): | ||
return {'response':'injest ok'} | ||
|
||
def update(self): | ||
return {'response':'update ok'} | ||
|
||
def delete(self): | ||
return {'response':'delete ok'} | ||
|
||
def hello_world(self): | ||
return {'response':'hello from frequency service'} |