mirror of
https://github.com/aykhans/slash-e.git
synced 2025-06-14 11:57:50 +00:00
chore: update profile
This commit is contained in:
10
Dockerfile
10
Dockerfile
@ -17,7 +17,7 @@ WORKDIR /backend-build
|
||||
COPY . .
|
||||
COPY --from=frontend /frontend-build/dist ./server/dist
|
||||
|
||||
RUN go build -o slash ./cmd/slash/main.go
|
||||
RUN CGO_ENABLED=0 go build -o slash ./cmd/slash/main.go
|
||||
|
||||
# Make workspace with above generated files.
|
||||
FROM alpine:3.16 AS monolithic
|
||||
@ -28,7 +28,13 @@ ENV TZ="UTC"
|
||||
|
||||
COPY --from=backend /backend-build/slash /usr/local/slash/
|
||||
|
||||
EXPOSE 5231
|
||||
|
||||
# Directory to store the data, which can be referenced as the mounting point.
|
||||
RUN mkdir -p /var/opt/slash
|
||||
VOLUME /var/opt/slash
|
||||
|
||||
ENTRYPOINT ["./slash", "--mode", "prod", "--port", "5231"]
|
||||
ENV SLASH_MODE="prod"
|
||||
ENV SLASH_PORT="5231"
|
||||
|
||||
ENTRYPOINT ["./slash"]
|
||||
|
Reference in New Issue
Block a user