Skip to content

Commit

Permalink
fix: fix docker working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypicalpro committed Dec 9, 2020
1 parent eabccdb commit 2a85c51
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ RUN apt-get update && \
gem update --system --silent

# Install ruby gems
COPY Gemfile* /app/
WORKDIR /app
COPY Gemfile* .
RUN bundle config path vendor/bundle && \
bundle install --jobs 4 --retry 3

Expand All @@ -36,17 +37,20 @@ COPY --from=ruby-deps / /
COPY --from=python-deps / /

# Install node_modules
WORKDIR /app
COPY package*.json /app/
RUN npm install --production

# Create binstubs and add them to the path
RUN bundle binstubs --all --path /app/bin && bundle platform && bundle list
ENV PATH="/app/bin:${PATH}"

# Test licensee
RUN licensee version
# RUN bundle binstubs --all --path /app/bin && bundle platform && bundle list
# ENV PATH="/app/bin:${PATH}"

# move the rest of the project over
COPY dist /app/dist
COPY dist dist

WORKDIR $GITHUB_WORKSPACE

# Test licensee
RUN bundle exec licensee version

ENTRYPOINT ["node", "/app/dist/index.js"]
ENTRYPOINT ["bundle", "exec", "node /app/dist/index.js"]

0 comments on commit 2a85c51

Please sign in to comment.