Skip to content

Commit

Permalink
Rework Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Nov 22, 2023
1 parent 80e650d commit f9c1bdf
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions infra/docker/DockerfileBuildApp
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,9 @@ RUN npm ci
RUN npm run build

RUN npx pkg ./node_modules/@import-meta-env/cli/bin/import-meta-env.js \
--target node18-alpine \
--target node16-alpine \
--output import-meta-env

RUN cat import-meta-env
RUN cat .env.example

######################
# Upload sourcemaps #
######################
Expand Down Expand Up @@ -124,8 +121,6 @@ COPY --from=buildSourcemaps /tmp/frontend/build /home/monitorfish/public/
COPY --from=buildFront /tmp/frontend/import-meta-env /home/monitorfish/
COPY --from=buildFront /tmp/infra/docker/env.sh /home/monitorfish/
COPY --from=buildFront /tmp/frontend/.env.example /home/monitorfish/
RUN cat /home/monitorfish/import-meta-env
RUN cat /home/monitorfish/.env.example

# Add logs folder to be mounted as volume
RUN mkdir /home/monitorfish/logs
Expand Down

0 comments on commit f9c1bdf

Please sign in to comment.