-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add Dockerfile * chore(web): remove pre-commit configuration and Dockerfile * chore(docs): remove CHANGELOG * chore(web): replace scripts with task commands * fix(web): extend vite config with vitetest config for type safety
- Loading branch information
Showing
16 changed files
with
49 additions
and
185 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# TODO(@kylejb): revisit directory structure to simplify embedding of web and set non-root user for security | ||
FROM node:lts-alpine AS web_builder | ||
|
||
RUN npm i -g @go-task/cli | ||
|
||
WORKDIR /app | ||
|
||
COPY .taskfiles .taskfiles/ | ||
COPY Taskfile.yml ./ | ||
COPY web web/ | ||
|
||
RUN task web:deps | ||
RUN task web:build | ||
|
||
|
||
FROM golang:1-alpine AS api_builder | ||
|
||
RUN go install github.com/go-task/task/v3/cmd/task@latest | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
COPY --from=web_builder /app/web/dist /app/web/dist/ | ||
|
||
RUN task api:build | ||
|
||
|
||
FROM alpine AS production | ||
|
||
RUN apk upgrade --no-cache | ||
|
||
WORKDIR / | ||
|
||
COPY --from=api_builder /app/api /app/swellhub | ||
|
||
EXPOSE 4000 | ||
|
||
CMD ["/app/swellhub"] |
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,3 +1,4 @@ | ||
# noaa | ||
|
||
`noaa` is a Go package that was built to facilitate rapid discovery of new data from [NOAA](https://www.noaa.gov) and [NDBC](https://www.ndbc.noaa.gov). | ||
`noaa` is a Go package that was built to facilitate rapid discovery of new data | ||
from [NOAA](https://www.noaa.gov) and [NDBC](https://www.ndbc.noaa.gov). |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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