Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Select Git revision
  • 92a0fe8633e7dabcbbaf73d162bbf5e09dc6211b
  • master default protected
  • develop
  • Features/CompanyProfile
  • Features/CompanyBrowseByVacancy
  • Features/HomeDosen
  • Features/VerifyVacancyForAdmin
  • Fixes/TextEditor
  • Features/SupervisorStudentApplications
  • Features/SupervisorApproveVacancy
  • Fixes/NumberOfApplicant
  • Personal/Sirin
  • Fixes/Pagination
  • Minor/Documentation
  • Features/admin-dashboard
  • Fixes/Add-Necessary-Testcases
  • Features/ProfilePage
  • Fixes/Lamaran-Dibaca-Bug
  • Cold-Fix
  • Features/CompanyVacancyApplicationList
  • UserStory3
21 results

Pane.jsx

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Dockerfile 1.10 KiB
    # File: docker_phx/Dockerfile
    FROM elixir:1.9-alpine as build
    
    # install build dependencies
    RUN apk add --update git build-base nodejs npm yarn python
    
    RUN mkdir /app
    WORKDIR /app
    
    # install Hex + Rebar
    RUN mix do local.hex --force, local.rebar --force
    
    # set build ENV
    ENV MIX_ENV=prod
    
    # install mix dependencies
    COPY mix.exs mix.lock ./
    COPY config config
    RUN mix deps.get --only $MIX_ENV
    RUN mix deps.compile
    
    # build assets
    # COPY assets assets
    # RUN cd assets && npm install && npm run deploy
    # RUN mix phx.digest
    
    # build project
    COPY priv priv
    COPY lib lib
    RUN mix compile
    
    # build release
    # at this point we should copy the rel directory but
    # we are not using it so we can omit it
    # COPY rel rel
    RUN mix release
    
    # prepare release image
    FROM alpine:3.9 AS app
    
    # install runtime dependencies
    RUN apk add --update bash openssl postgresql-client
    
    EXPOSE 4000
    ENV MIX_ENV=prod
    
    # prepare app directory
    RUN mkdir /app
    WORKDIR /app
    
    
    # copy release to app container
    COPY --from=build /app/_build/prod/rel/docker_phx .
    COPY entrypoint.sh .
    RUN chown -R nobody: /app
    USER nobody
    
    ENV HOME=/app
    CMD ["bash", "/app/entrypoint.sh"]