Skip to content

Commit

Permalink
#56 scripts para crear y ejecutar el contenedor
Browse files Browse the repository at this point in the history
  • Loading branch information
DarckMonster committed Jan 9, 2024
1 parent 04e2469 commit 07929fc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@ WORKDIR /usr/src/app
LABEL version="5.0.0"
LABEL mainteiner="[email protected]"

# install dependencies into temp directory
# this will cache them and speed up future builds
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lockb /temp/dev/
RUN cd /temp/dev && bun install --frozen-lockfile
COPY package.json bun.lockb ./
RUN bun install --frozen-lockfile

# run the app
USER bun
EXPOSE 3000/tcp
WORKDIR /app/test
ENTRYPOINT [ "bun", "run", "test" ]

0 comments on commit 07929fc

Please sign in to comment.