mirror of
https://github.com/tabler/tabler.git
synced 2025-12-22 01:44:25 +04:00
Fix Dockerfile (#1646)
Co-authored-by: Matt Smith <quaffapint@gmail.com> Co-authored-by: Paweł Kuna <1282324+codecalm@users.noreply.github.com>
This commit is contained in:
5
.changeset/healthy-bikes-cry.md
Normal file
5
.changeset/healthy-bikes-cry.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@tabler/core": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
`Dockerfile` fix
|
||||||
20
Dockerfile
20
Dockerfile
@@ -1,27 +1,23 @@
|
|||||||
FROM ruby:2.7-alpine
|
FROM ruby:2.7-alpine
|
||||||
|
|
||||||
RUN apk add --no-cache nodejs pnpm && \
|
|
||||||
apk add --no-cache --virtual build-dependencies build-base
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
ADD _config.yml /app/
|
||||||
ADD package.json /app/
|
ADD _config_prod.yml /app/
|
||||||
ADD package-lock.json /app/
|
|
||||||
ADD package.json /app/
|
|
||||||
ADD Gemfile /app/
|
ADD Gemfile /app/
|
||||||
ADD Gemfile.lock /app/
|
ADD Gemfile.lock /app/
|
||||||
ADD _config.yml /app/
|
ADD package.json /app/
|
||||||
|
ADD pnpm-lock.yaml /app/
|
||||||
ADD gulpfile.js /app/
|
ADD gulpfile.js /app/
|
||||||
|
|
||||||
# RUN apk update && apk add --virtual build-dependencies build-base
|
RUN apk add --virtual build-dependencies build-base
|
||||||
|
RUN apk add npm --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community/
|
||||||
|
RUN npm i -g pnpm
|
||||||
RUN pnpm install
|
RUN pnpm install
|
||||||
RUN bundle config --global silence_root_warning 1 && bundler install --verbose
|
RUN bundle config --global silence_root_warning 1 && bundler install --verbose
|
||||||
|
|
||||||
# website
|
# website
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
# website management (browser auto reload)
|
# website management (browser auto reload)
|
||||||
EXPOSE 3001
|
EXPOSE 3001
|
||||||
|
|
||||||
# run tabler
|
# run tabler
|
||||||
ENTRYPOINT [ "pnpm", "run", "start-plugins" ]
|
ENTRYPOINT [ "pnpm", "run", "start-plugins" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user