Skip to content

Instantly share code, notes, and snippets.

@romitkarmakar
Created August 2, 2020 09:33
Show Gist options
  • Save romitkarmakar/b4003587ad239a471e26510e08b2f38e to your computer and use it in GitHub Desktop.
Save romitkarmakar/b4003587ad239a471e26510e08b2f38e to your computer and use it in GitHub Desktop.

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" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment