Skip to content
This repository was archived by the owner on Jun 24, 2019. It is now read-only.
This repository was archived by the owner on Jun 24, 2019. It is now read-only.

Optimize Docker build #15

@charlesjliu

Description

@charlesjliu

At the moment, the docker image for the api is generated by copying the src/ files to the docker image, installing all the packages (devDependencies too) and running babel in the container on the src/ files, before running the server.

This is a bloated process that can be streamlined with the help of a preliminary step that generates a builder image: https://medium.com/@guillaumejacquart/node-js-docker-workflow-12febcc0eed8

Acceptance Criteria

  • the built docker image with the server on it does not contain unnecessary files/dependencies
  • docker-compose will still spin up the server for first time devs

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions