Run the project using
eb create -i t3a.small
branch-defaults: | |
default: | |
environment: null | |
group_suffix: null | |
global: | |
application_name: your-application-name | |
branch: null | |
default_ec2_keyname: null | |
default_platform: Docker | |
default_region: ap-south-1 | |
include_git_submodules: true | |
instance_profile: null | |
platform_name: null | |
platform_version: null | |
profile: null | |
repository: null | |
sc: null | |
workspace_type: Application |
version: "3" | |
networks: | |
triunits: | |
external: true | |
services: | |
triunits: | |
networks: | |
- triunits | |
build: | |
context: . | |
dockerfile: Dockerfile | |
environment: | |
ENV_NAME: dev | |
ports: | |
- 8000:8000 |
FROM node:10-alpine | |
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app | |
WORKDIR /home/node/app | |
COPY package*.json ./ | |
USER node | |
RUN npm install | |
ADD . /home/node/app | |
COPY --chown=node:node . . | |
RUN npm run tsc | |
EXPOSE 8000 | |
CMD [ "node", "build/index.js" ] |