-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1839 from automatisch/dockerfile-revision
chore: direct builds in docker
- Loading branch information
Showing
2 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM node:18-alpine | ||
|
||
ENV PORT 3000 | ||
|
||
RUN \ | ||
apk --no-cache add --virtual build-dependencies python3 build-base git | ||
|
||
WORKDIR /automatisch | ||
|
||
# copy the app, note .dockerignore | ||
COPY . /automatisch | ||
|
||
RUN yarn | ||
|
||
RUN cd packages/web && yarn build | ||
|
||
RUN \ | ||
apk --no-cache add --virtual build-dependencies python3 build-base && \ | ||
yarn global add @automatisch/cli@0.10.0 --network-timeout 1000000 && \ | ||
rm -rf /usr/local/share/.cache/ && \ | ||
apk del build-dependencies | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
COPY ./docker/entrypoint.sh /entrypoint.sh | ||
|
||
EXPOSE 3000 | ||
ENTRYPOINT ["sh", "/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters